An instance of the Image
public sealed class ImageCollection: FrameBaseCollection
Public NotInheritable Class ImageCollection
Inherits FrameBaseCollection
The following example iterates all images and sets the Image.
foreach (TXTextControl.Image myImage in textControl1.Images)
{
myImage.SaveMode = TXTextControl.ImageSaveMode.SaveAsFileReference;
myImage.ExportCompressionQuality = 100; //Export with maximum quality
myImage.ExportFilterIndex = 4; //Export as PNG format
myImage.ExportMaxResolution = 96; //Export with 96 DPI max
}
For Each MyImage As TXTextControl.Image In TextControl1.Images
MyImage.SaveMode = TXTextControl.ImageSaveMode.SaveAsFileReference
MyImage.ExportCompressionQuality = 100 'Export with maximum quality
MyImage.ExportFilterIndex = 3 'Export as PNG
MyImage.ExportMaxResolution = 96 'Export with 96 DPI max
Next
Method | Description |
---|---|
Add | Inserts a new image in a Text Control document. |
Clear | Removes all objects from the collection and from the document.
(Inherited from Frame |
Copy |
Copies the elements of the collection to an array, starting at a particular index. |
Get |
Returns an enumerator that can be used to iterate through the collection.
(Inherited from Frame |
Get |
Gets a particular image from the collection. |
Remove | Removes an image from a Text Control document. |
Property | Description |
---|---|
Count | Gets the number of elements contained in the collection.
(Inherited from Frame |
Export |
Gets all available filters for exporting images. |
Import |
Gets all available filters for importing images. |
Is |
Returns true if the collection is designed to be thread safe, otherwise, it returns false.
(Inherited from Frame |
Sync |
Gets an object that can be used to synchronize access to the collection.
(Inherited from Frame |