Class SelectedTextObjects
Holds the list of TextObject objects currently selected in the designer.
Inheritance
Namespace: FastReport
Assembly: FastReport.dll
Syntax
public class SelectedTextObjects
Remarks
This class is used by the "Text" toolbar. Use methods of this class to perform some operations on the selected objects.
Note: after calling any method in this class, call the Designer.SetModified method to reflect changes.
Note: this list contains only objects of TextObject type. If you want to access all selected objects, use the SelectedObjects property.
Properties
Count
Gets the number of selected objects.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Enabled
Gets a value indicating whether the operations are enabled.
Declaration
public bool Enabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
First
Gets the first selected object.
Declaration
public TextObject First { get; }
Property Value
Type | Description |
---|---|
TextObject |
Methods
ClearText()
Clears the text of the selected objects.
Declaration
public void ClearText()
InvokeHighlightEditor()
Invokes the highlight editor for the selected objects.
Declaration
public bool InvokeHighlightEditor()
Returns
Type | Description |
---|---|
System.Boolean | true if editor was closed with the OK button. |
SetAngle(Int32)
Sets the angle for the selected objects.
Declaration
public void SetAngle(int angle)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | angle | Angle to set. |
SetAutoWidth(Boolean)
Sets the AutoWidth property value for the selected objects.
Declaration
public void SetAutoWidth(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | Value to set. |
SetConditions(ConditionCollection)
Sets the highlight conditions for the selected objects.
Declaration
public void SetConditions(ConditionCollection value)
Parameters
Type | Name | Description |
---|---|---|
ConditionCollection | value | Highlight conditions. |
SetFontName(String)
Sets the font name for the selected objects.
Declaration
public void SetFontName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Font name. |
SetFontSize(Single)
Sets the font size for the selected objects.
Declaration
public void SetFontSize(float size)
Parameters
Type | Name | Description |
---|---|---|
System.Single | size | Font size. |
SetHAlign(HorzAlign)
Sets the horizontal text alignment for tthe selected objects.
Declaration
public void SetHAlign(HorzAlign align)
Parameters
Type | Name | Description |
---|---|---|
HorzAlign | align | Alignment to set. |
SetTextColor(Color)
Sets the text color for the selected objects.
Declaration
public void SetTextColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | Text color. |
SetVAlign(VertAlign)
Sets the vertical text alignment for tthe selected objects.
Declaration
public void SetVAlign(VertAlign align)
Parameters
Type | Name | Description |
---|---|---|
VertAlign | align | Alignment to set. |
SetWordWrap(Boolean)
Sets the WordWrap property value for the selected objects.
Declaration
public void SetWordWrap(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | Value to set. |
ToggleFontStyle(FontStyle, Boolean)
Toggles the specified font style for the selected objects.
Declaration
public void ToggleFontStyle(FontStyle style, bool toggle)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.FontStyle | style | Font style. |
System.Boolean | toggle | Toggle value. |