Selection Class
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDrawing.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDrawing.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
- Implements
- INotify
Property Changed
Description
The Drawing.Selection class represents all selected shapes.
Syntax
public class Selection : INotifyPropertyChangedPublic Class Selection
Implements INotifyPropertyChangedExamples
The following example creates a reusable selection format and applies it to the current report heading.
textControl.Text = "Quarterly results";
textControl.Select(0, textControl.Text.Length);
Selection selection = new() { Bold = true, FontSize = 280 };
textControl.Selection = selection;textControl.Text = "Quarterly results"
textControl.Select(0, textControl.Text.Length)
Dim selection As New Selection() With { .Bold = True, .FontSize = 280 }
textControl.Selection = selectionMembers
Properties
| Property | Description |
|---|---|
| CanBringForward | Gets value that indicates whether the selected shapes' levels can be increased by one. The property returns false if no shape is selected or one of the selected shapes is already the uppermost shape. In all other cases the property returns true. |
| CanBringToFront | Gets value that indicates whether the selected shape can be displayed as the uppermost shape of all shapes. The property returns false if no or more than one shape are selected or one of the selected shape is already the uppermost shape. In all other cases the property returns true. |
| CanSendBackward | Gets value that indicates whether the selected shapes' levels can be decreased by one. The property returns false if no shape is selected or one of the selected shapes is already the lowest shape. In all other cases the property returns true. |
| CanSendToBack | Gets value that indicates whether the selected shape can be displayed as the lowest shape of all shapes. The property returns false if no or more than one shape are selected or one of the selected shape is already the lowest shape. In all other cases the property returns true. |
| Shapes | Gets or set the selected shapes . |
Methods
| Method | Description |
|---|---|
| BringForward | Increases the selected shapes' levels by one. The method has no effect if the CanBringForward property returns false. |
| BringToFront | Displays the selected shape as the uppermost shape of all shapes. The method has no effect if the CanBringToFront property returns false. |
| IsCommonValueSelected | Informs about whether an attribute from the Drawing.Selection.Attribute enumeration has the same value for the complete shapes selection. |
| SendBackward | Decreases the selected shapes' levels by one. The method has no effect if the CanSendBackward property returns false. |
| SendToBack | Displays the selected shape as the lowest shape of all shapes. The method has no effect if the CanSendToBack property returns false. |
Events
| Event | Description |
|---|---|
| PropertyChanged | Not described in the reference. public event PropertyChangedEventHandler PropertyChanged; |