TXTextControl.Drawing.Shape Class

The Drawing.Shape class represents a shape which can be displayed inside the TX Drawing Control. The Outline class implements the System.ComponentModel.INotifyPropertyChanged interface.

Introduced: 23.0.

Syntax

[C#]
public class Shape : System.ComponentModel.INotifyPropertyChanged
[Visual Basic]
Public Class Shape
  Implements System.ComponentModel.INotifyPropertyChanged

Constructors

Constructor Description
Shape Overloaded. Initializes a new instance of the Shape class.

Properties

Property Description
Angle Gets or sets the angle of the shape inside the TX Drawing Control.
AutoSize Gets or sets a value indicating whether the shape is automatically resized with the TX Drawing Control.
Bounds Gets or sets the bounding rectangle of the shape.
CanFitToCanvas Gets a value which indicates whether the FitToCanvas method can be used or not.
Flip Gets or sets whether and in what form the shape is flipped.
Index Represents the index of the shape inside control's shape collection.
IsSelected Gets a value which indicates whether the shape is selected or not.
Location Gets or sets shape's current location.
Movable Gets or sets a value which indicates whether the shape is movable or not.
ShapeFill Gets the shape's fill properties.
ShapeOutline Gets the shape's outline properties.
Sizable Gets or sets a value which indicates whether the shape is sizable or not.
Size Gets or sets the shape's current size.
Type Gets or sets the shape's type.

Methods

Method Description
FitToCanvas Expands the shape to the control's canvas size.

See Also