Image Class |
|
An instance of the Image class represents an image in a Text Control document. The TextControl class
has several events that inform about different occurrences. |
|
| Syntax: |
|
[C#]
public class Image : FrameBase
[Visual Basic]
Public Class Image
Inherits FrameBase
|
Constructors |
| Constructor |
|
Description |
|
| |
| Image |
|
Initializes a new instance of the Image class.
|
Properties |
| Property |
|
Description |
|
| |
| ExportCompressionQuality |
|
Sets a value between 1 and 100, which is the quality of a lossy data compression used if this image is
saved.
|
| ExportFileName |
|
Gets or sets the file name of an image used, if a Text Control document is saved.
|
| ExportFilterIndex |
|
Gets or sets the format used if an image is saved.
|
| ExportMaxResolution |
|
Gets or sets the maximum resolution in dots per inch used if this image is saved.
|
| FileName |
|
Gets or sets the corresponding file name and path from which an inserted image is loaded.
|
| FilterIndex |
|
Gets or sets the format used, if an image is inserted.
|
| HorizontalScaling |
|
Gets or sets an images's horizontal scaling factor in percent.
|
| InsertionMode |
|
Gets a value determining whether an image is treated as a single character or the document's text flows around the image.
|
| Location |
|
Gets, in twips, the image's or text frame's current location.
|
| Moveable |
|
Determines whether an inserted image or text frame can be moved at run time.
|
| SaveMode |
|
Determines whether the image is stored through its data or through its file reference.
|
| Size |
|
Gets or sets the current size in twips.
|
| Sizeable |
|
Determines whether an inserted image or text frame can be resized at run time.
|
| TextDistances |
|
Gets or sets the distances, in twips, between an image or text frame and the document's text.
|
| TextPosition |
|
Read only. Gets the image's or text frame's character position in the document's text (one-based).
|
| VerticalScaling |
|
Gets or sets an images's vertical scaling factor in percent.
|
|
| Example: |
|
The 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:
[C#]
TXTextControl.Image myImage = new TXTextControl.Image();
myImage.Sizeable = false;
myImage.HorizontalScaling = 75;
myImage.VerticalScaling = 75;
textControl1.Images.Add(myImage, -1);
[Visual Basic]
Dim MyImage As New TXTextControl.Image()
MyImage.Sizeable = False
MyImage.HorizontalScaling = 75
MyImage.VerticalScaling = 75
TextControl1.Images.Add(MyImage, -1)
|
| See also: |
|
Images, Graphical Overview. |