Label Control

Description

The Label control displays text. The text can be a static or set using an expression.

The Label control can be added in two ways:

Properties Common to Most Controls

For more information about the properties listed below, see Properties Common to Most Controls.

For more information regarding each of the property groups, see the Control Reference.

Actions

Actions

Fit Bounds to Text Resize the bounds of a control to fit static text exactly.

Fit Text to Bounds Resize the static text to fit the height or width of the control.

Text

Type: String

Can be configured in the Properties or Expressions panel.

Sets the text to appear in the print template control.

The value of the Text property can be set in a few different ways:

  • Double-click the control to start entering text.
  • Select the control and then enter text into the Text property.
  • Drag a field from the Field List onto the print template to automatically populate the Text property.

Text Format String

The Text Format String Editor provides the ability to apply formatting to data. You can select one of the pre-built formats or create your own.

The Text Format String Editor cannot format values that have been manually entered into a control.

For more information, see the help regarding the Format String Editor and Format Specifiers.

Summary: Running

Sets the print template area that the summary function applies to.

The summary function must be configured in the Text property of the Expressions panel. You must set the Summary Running property to a value other than None for the Expression Editor to show Summary functions.

The report areas available from the drop-down list include:

  • None: No summary is calculated.
  • Group: Calculates a value for the current group.

    The control must be placed in the Group Header Band, Group Footer Band or Detail Band for the control to display the value for the current group.

  • Print Template: Calculates a value for the entire print template.

  • Page: Calculates a value for the page where the control is printed.

Summary: Ignore Null Values

Type: Boolean

Sets whether null values should be ignored when a summary is calculated. If null values are included in the calculation, they are treated as zeros.

Summary: Treat Strings As Numerics

Type: Boolean

Determines whether a summary function should treat strings as numeric values.

Angle

Type: Single

The degree by which the text is rotated. Text is rotated counterclockwise from the vertical.

The Can Grow and Can Shrink properties are ignored when Angle is set to a non-zero value.

Auto Width

Type: Boolean

Specifies whether or not the width of a control depends on the text within it.

Enable this property to print the text of a control in full without it being cut off by the dimensions of the control. This may be required when the contents of a control are populated using a data source and the full length of the value is unknown until runtime. Contents will be cut off if they reach the bounds of the page.

This setting has no effect on the width or position of other controls. This means that if the control expands to fit its contents, it may overlap with nearby controls.

If Word Wrap is enabled, the control's width can only be decreased. If Word Wrap is disabled, the control's width can be increased or decreased to best fit a label's contents.

Can Grow

Type: Boolean

Sets whether the control's height can grow to display the contents at runtime.

Enabled by default.

If there are other controls below the selected control, they will be moved down to prevent overlapping.

If the Label control is used to calculate a summary, the Can Grow property value is ignored.

Can Shrink

Type: Boolean

Sets whether the control's height can decrease if the contents do not completely fill the control at runtime.

If there are other controls below the current control, they will be moved up to remove the unused space.

If the Label control is used to calculate a summary, the Can Shrink property value is ignored.

Multiline

Type: Boolean

Sets whether the control respects carriage returns entered into the Text property.

Enabled by default.

Word Wrap

Type: Boolean

Determines how text is rendered when it does not completely fit into the bounds of the control. When enabled, text will start a new line once it meets the right side of the control. Otherwise, the text is displayed on a single line.

Enabled by default.

Appearance

Text Alignment

Can be configured in the Properties or Expressions panel.

Specifies the alignment of the print item's text.

Text Trimming

Type: StringTrimming

Can be configured in the Properties or Expressions panel.

Sets the trimming mode applied to text when all text cannot fit into the size of the control.

Options include:

  • None: Text is not trimmed.
  • Character: Text is trimmed to the nearest character.
  • Ellipsis Character: Text is trimmed to the nearest character and an ellipsis is inserted at the end of the trimmed line.
  • Ellipsis Path: Center is removed from trimmed lines and replaced by an ellipsis.
  • Ellipsis Word: Text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimmed line.
  • Word: Text is trimmed to the nearest word.

This property is overridden if Word Wrap is set to True.

 

Behavior

Anchor Vertically

Sets the location of the control in relation to the parent container. When the parent container changes size, the control may move or resize to maintain its position.

The options for vertically anchoring include:

  • None: The control's size and location are not affected when the container size changes.
  • Top: The distance between the top of the control and the top of the container remains fixed when the container size changes.
  • Bottom: The distance between the bottom of the control and the bottom of the container remains fixed when the container size changes.
  • Both: The distance from the top and bottom of the control from the top and bottom of the container remains fixed when the container size changes. This means that control is resized to maintain these fixed distances.

Anchor Horizontally

Sets the location of the control in relation to the parent container. When the parent container changes size, the control may move or resize to maintain its position.

The options for horizontally anchoring include:

  • None: When the parent container changes size, the control's size and location are not affected when the container size changes.
  • Left: The distance between the left edge of the control and the left side of the container remains fixed when the container size changes.
  • Right: The distance between the right edge of the control and the right side of the container remains fixed when the container size changes.
  • Both: The distance from the left and right edges of the control from the left and right sides of the container remains fixed when the container size changes. This means that control is resized to maintain these fixed distances.

Angle

Type: Single

The degree by which the text is rotated. Text is rotated counterclockwise from the vertical.

The Can Grow and Can Shrink properties are ignored when Angle is set to a non-zero value.

Allow Markup Text

Type: Boolean

Sets whether you can use HTML markup tags to format the text in the Text property.

See the following resource for what tags are supported.

Auto Width

Type: Boolean

Specifies whether or not the width of a control depends on the text within it.

Enable this property to print the text of a control in full without it being cut off by the dimensions of the control. This may be required when the contents of a control are populated using a data source and the full length of the value is unknown until runtime. Contents will be cut off if they reach the bounds of the page.

This setting has no effect on the width or position of other controls. This means that if the control expands to fit its contents, it may overlap with nearby controls.

If Word Wrap is enabled, the control's width can only be decreased. If Word Wrap is disabled, the control's width can be increased or decreased to best fit a label's contents.

Can Grow

Type: Boolean

Sets whether the control's height can grow to display the contents at runtime.

Enabled by default.

If there are other controls below the selected control, they will be moved down to prevent overlapping.

Can Shrink

Type: Boolean

Sets whether the control's height can decrease if the contents do not completely fill the control at runtime.

If there are other controls below the current control, they will be moved up to remove the unused space.

Multiline

Type: Boolean

Sets whether the control respects carriage returns entered into the Text property.

Enabled by default.

Process Duplicates Mode

Sets how print controls with duplicate records should be processed. The data type that is processed must be set in the Process Duplicates Target property.

Methods for processing duplicate data include:

  • Leave: The duplicate control is always printed.
  • Merge: The identical data values are merged into a single column.
  • Suppress: A blank space is printed in place of the duplicate data.
  • Suppress and Shrink: The control that contains duplicate data is not printed.
  • This setting has no effect on intersecting controls or in vertical bands.

If there are no controls in a band after duplicates are removed, VertiGIS Studio Reporting does not print the band.

Process Duplicates Target

Sets what data is processed by the Process Duplicates Mode property.

Options include:

  • Value: The value of the control.
  • Tag: The data in the control's Tag property.

For the Label control, the Text property is assigned to the Value option.

Process Null Values

Specifies how a print item containing a null value should be processed.

Methods of processing the null values include:

  • Leave: The print item is always printed.
  • Suppress: A blank space is printed in place of the null data.
  • Suppress and Shrink: The print item that contains null data is not printed.
  • This setting has no effect on intersecting controls or in vertical bands.

If there are no controls in a band after duplicates are removed, VertiGIS Studio Printing does not print the band.

Text Fit Mode

This property is not available if Can Grow, Can Shrink, or Auto Width are enabled.

Specifies how the text of a control can be resized to fit the boundaries of the control.

The options for modifying the control's text size include the following:

  • None: The text size is unchanged.
  • Grow Only: The text size can be increased to occupy the entire area of the control.
  • Shrink Only: The text size can be decreased so that it all displays in the bounds of the control.
  • Shrink and Grow: The text size can be increased or decreased to fit the bounds of the control.

Word Wrap

Type: Boolean

Determines how text is rendered when it does not completely fit into the bounds of the control. When enabled, text will start a new line once it meets the right side of the control. Otherwise, the text is displayed on a single line.

Enabled by default.

Data

Null Value Text

Type: String

Specifies the text shown in the control when the value of its bound data field is null.

Summary: Running

Sets the print template area that the summary function applies to.

The summary function must be configured in the Text property of the Expressions panel. You must set the Summary Running property to a value other than None for the Expression Editor to show Summary functions.

The report areas available from the drop-down list include:

  • None: No summary is calculated.
  • Group: Calculates a value for the current group.

    The control must be placed in the Group Header Band, Group Footer Band or Detail Band for the control to display the value for the current group.

  • Print Template: Calculates a value for the entire print template.

  • Page: Calculates a value for the page where the control is printed.

Summary: Ignore Null Values

Type: Boolean

Sets whether null values should be ignored when a summary is calculated. If null values are included in the calculation, they are treated as zeros.

Summary: Treat Strings As Numerics

Type: Boolean

Determines whether a summary function should treat strings as numeric values.

Text

Type: String

Can be configured in the Properties or Expressions panel.

Sets the text to appear in the print template control.

The value of the Text property can be set in a few different ways:

  • Double-click the control to start entering text.
  • Select the control and then enter text into the Text property.
  • Drag a field from the Field List onto the print template to automatically populate the Text property.

Text Format String

The Text Format String Editor provides the ability to apply formatting to data. You can select one of the pre-built formats or create your own.

The Text Format String Editor cannot format values that have been manually entered into a control.

For more information, see the help regarding the Format String Editor and Format Specifiers.

Printing

Right to Left

Specifies the layout of the content within a print item.

The options include:

  • Inherit: The item inherits the printing configuration set at the parent level. This is the default.
  • Yes: The content is aligned to the right.
  • No: The content is aligned to the left.

Related Tutorials

Refer to the following resources for additional help on implementing this control: