The TXDrawing
public class TXDrawingCore : System.ComponentModel.INotifyPropertyChanged
Public Class TXDrawingCore
Implements System.ComponentModel.INotifyPropertyChanged
Introduced: 33.0.
Constructor | Description |
---|---|
TXDrawing |
Initializes a new instance of the TXDrawing |
Event | Description |
---|---|
Adapt |
Indicates that the visible bounds of the displayed shapes have been changed (by changing the shape's angle, outline width, yellow adjust rectangles or the canvas' border width) in so far that the canvas requires an update of its bounds. |
Changed | Indicates that the number or formatting of the displayed shapes has been changed. |
Shape |
Occurs when a new shape has been created. |
Shape |
Occurs when a shape has been deleted from the TXDrawing |
Shape |
Occurs when a shape has been deselected. |
Shape |
Occurs when a shape has been flipped. |
Shape |
Occurs when shape formatting attributes have been changed. |
Shape |
Occurs when a shape has been moved. |
Shape |
Occurs when a shape has been selected. |
Shape |
Occurs when a shape has been sized. |
View |
Occurs selection changing have caused the view to change. |
Method | Description |
---|---|
Clear |
Clears the undo buffer of the TXDrawing |
Copy | Copies the current selected shapes to the Clipboard. |
Cut | Moves the current selected shapes to the Clipboard. |
Get |
Creates and returns a string representing a Scalable Vector Graphics (SVG) of the shapes. |
Load | Loads shapes data into the canvas from a specified object of type System. |
Paste | Pastes the content of the clipboard into the canvas. |
Redo | Redoes the last TXDrawing |
Save | Saves the shapes data to the given object of type System. |
Select |
Selects all shapes. |
Size |
If any changes of the the displayed shapes' visible bounds require an adaption of the canvas bounds, its size and/or location is expanded respectively decreased by the considering value of the considering shape's side(s). |
Undo | Undoes the last TXDrawing |
Property | Description |
---|---|
Back |
Gets or sets the back color of the canvas. |
Border |
Gets or sets the border line color of the canvas. |
Border |
Gets or sets the border line width of the canvas. |
Can |
Informs whether shapes are selected which can be copied to the internal clipboard. |
Can |
Informs whether the internal clipboard contains shapes that can be pasted into the canvas. |
Can |
Informs whether an operation can be re-done using the Redo method. |
Can |
Gets a value indicating whether the user can undo the previous TXDrawing |
Is |
Gets a value whether the cavas is visible or not. |
Selection | Gets an object of type Drawing. |
Shapes | Gets an object of type Shape |
Size | Gets or sets the size of the canvas. |