TX Text Control .NET for Windows Forms Documentation

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

ConstructorDescription
ImageInitializes a new instance of the Image class.

Properties

PropertyDescription
AlignmentGets or sets the horizontal alignment of an image or text frame which is anchored to a paragraph.
ExportCompressionQualitySets a value between 1 and 100, which is the quality of a lossy data compression used if this image is saved.
ExportFileNameGets or sets the file name of an image used, if a Text Control document is saved.
ExportFilterIndexGets or sets the format used if an image is saved.
ExportMaxResolutionGets or sets the maximum resolution in dots per inch used if this image is saved.
FileNameGets or sets the corresponding file name and path from which an inserted image is loaded.
FilterIndexGets or sets the format used, if an image is inserted.
HorizontalScalingGets or sets an images's horizontal scaling factor in percent.
IDGets or sets an identifier for the image or text frame.
InsertionModeGets or sets a value determining whether an image is treated as a single character or the document's text flows around the image.
LocationGets or sets, in twips, the image's or text frame's current location.
MoveableDetermines whether an inserted image or text frame can be moved at run time.
NameGets or sets a name for the image or text frame.
SaveModeDetermines whether the image is stored through its data or through its file reference.
SizeGets or sets the current size in twips.
SizeableDetermines whether an inserted image or text frame can be resized at run time.
TextDistancesGets or sets the distances, in twips, between an image or text frame and the document's text.
TextPositionRead only. Gets the image's or text frame's character position in the document's text (one-based).
VerticalScalingGets 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

 
 
 

Products

Support

Downloads

Corporate

Buy Now