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.

Syntax

public class Shape : System.ComponentModel.INotifyPropertyChanged
Public Class Shape
  Implements System.ComponentModel.INotifyPropertyChanged

Introduced: X13.

Examples

The following example shows a Drawing.Shape class with its three prpoerties AutoSize, Sizable and Movable.

TXTextControl.Drawing.Shape newShape = new TXTextControl.Drawing.Shape();

  newShape.AutoSize = true;
  newShape.Sizable  = false;
  newShape.Movable  = false;
Dim newShape As TXTextControl.Drawing.Shape = New TXTextControl.Drawing.Shape()

    newShape.AutoSize = True
    newShape.Sizable  = False
    newShape.Movable  = False

Constructors

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

Methods

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

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.