An instance of the Image class represents an image in a Text Control document. The Text
public class Image : FrameBasePublic Class Image
Inherits FrameBaseThe following example inserts a new image into the document, which will be treated as a character. The image's size will be reduced to 75% and it will not be sizeable:
TXTextControl.Image myImage = new TXTextControl.Image();
myImage.Sizeable = false;
myImage.HorizontalScaling = 75;
myImage.VerticalScaling = 75;
textControl1.Images.Add(myImage, -1);Dim MyImage As New TXTextControl.Image()
MyImage.Sizeable = False
MyImage.HorizontalScaling = 75
MyImage.VerticalScaling = 75
TextControl1.Images.Add(MyImage, -1)| Constructor | Description |
|---|---|
| Image | Initializes a new instance of the Image class. |
| Method | Description |
|---|---|
| Change |
Changes the frame's z-order.
(Inherited from Frame |
| 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 |
| Export |
Sets a value between 1 and 100, which is the quality of a lossy data compression used if this image is saved. |
| Export |
Gets or sets the file name of an image used, if a Text Control document is saved. |
| Export |
Gets or sets the format used if an image is saved. |
| Export |
Gets or sets the maximum resolution in dots per inch used if this image is saved. |
| File |
Gets or sets the corresponding file name and path from which an inserted image is loaded. |
| Filter |
Gets or sets the format used, if an image is inserted. |
| Horizontal |
Gets or sets an images's horizontal scaling factor in percent. |
| 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 image is stored through its data or through its 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 |
| Vertical |
Gets or sets an images's vertical scaling factor in percent. |
Learn more about the TXText