An instance of the Drawing
public class DrawingFrame : FrameBase
Public Class DrawingFrame
Inherits FrameBase
Introduced: X13.
The following example shows how to use the TXText
TXTextControl.Drawing.TXDrawingControl myDrawingControl = new TXTextControl.Drawing.TXDrawingControl();
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new TXTextControl.DataVisualization.DrawingFrame(myDrawingControl);
drawingFrame.Activate();
drawingFrame.ExportCompressionQuality = 100;
drawingFrame.ExportFileName = "";
drawingFrame.ExportFilterIndex = 1;
drawingFrame.ExportResolution = 100;
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto;
textControl1.Drawings.Add(drawingFrame, -1);
Dim myDrawingControl As TXTextControl.Drawing.TXDrawingControl = New TXTextControl.Drawing.TXDrawingControl()
Dim drawingFrame As TXTextControl.DataVisualization.DrawingFrame = New TXTextControl.DataVisualization.DrawingFrame(myDrawingControl)
drawingFrame.Activate() ' here, the Activate method is used
drawingFrame.ExportCompressionQuality = 100
drawingFrame.ExportFileName = ""
drawingFrame.ExportFilterIndex = 1
drawingFrame.ExportResolution = 100
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto
textControl1.Drawings.Add(drawingFrame, -1)
Constructor | Description |
---|---|
Drawing |
Initializes a new instance of the Drawing |
Method | Description |
---|---|
Activate | Activates the drawing so that its contents can be edited. |
Add |
Add the current state of the drawing which is connected with this Drawing |
Change |
Changes the frame's z-order.
(Inherited from Frame |
Refresh | Refreshes the drawing. |
Property | Description |
---|---|
Alignment | Gets or sets the frame's horizontal alignment when it is anchored to a paragraph.
(Inherited from Frame |
Bounds | Gets the frame's bounding rectangle relative to the upper left corner of the document.
(Inherited from Frame |
Drawing | Gets the drawing control associated with the drawing frame. |
Export |
Sets a value between 1 and 100, which is the quality of a lossy data compression used, if the drawing's bitmap image is exported. |
Export |
Gets or sets the file name, when the drawing's bitmap image is exported. |
Export |
Gets or sets the format used, if a drawing's bitmap image is exported. |
Export |
Gets or sets the maximum resolution in dots per inch in which the drawing's bitmap image is saved. |
ID | Gets or sets an identifier for the frame.
(Inherited from Frame |
Insertion |
Gets or sets a value determining whether the frame is treated as a single character or the document's text either flows around or overwrites the frame.
(Inherited from Frame |
Location | Gets or sets, in twips, the frame's current location.
(Inherited from Frame |
Moveable | Determines whether a frame can be moved in the document at run time with the built-in mouse interface.
(Inherited from Frame |
Name | Gets or sets a name for the frame.
(Inherited from Frame |
Save |
Determines whether the drawing's bitmap image is stored through its binary data or through a file reference. |
Size | Gets or sets the frame's size in twips.
(Inherited from Frame |
Sizeable | Determines whether the frame can be resized at run time with the built-in mouse interface.
(Inherited from Frame |
Text |
Gets or sets the distances, in twips, between the frame and the document's text.
(Inherited from Frame |
Text |
Read only.
(Inherited from Frame |