Inserts a new image in a Text Control document.
public bool Add();Public Function Add() As Booleanpublic bool Add(Image image, int textPosition);Public Function Add(ByVal image As Image, ByVal textPosition As Integer) As Booleanpublic bool Add(Image image, HorizontalAlignment alignment, int textPosition, ImageInsertionMode insertionMode);Public Function Add(ByVal image As Image, ByVal alignment As HorizontalAlignment, ByVal textPosition As Integer, _
ByVal insertionMode As ImageInsertionMode) As Booleanpublic bool Add(Image image, System.Drawing.Point location, int textPosition, ImageInsertionMode insertionMode);Public Function Add(ByVal image As Image, ByVal location As System.Drawing.Point, ByVal textPosition As Integer, _
ByVal insertionMode As ImageInsertionMode) As Booleanpublic bool Add(Image image, int pageNumber, System.Drawing.Point location, ImageInsertionMode insertionMode);Public Function Add(ByVal image As Image, ByVal pageNumber As Integer, ByVal location As System.Drawing.Point, _
ByVal insertionMode As ImageInsertionMode) As Booleanpublic bool Add(Image image, System.Drawing.Point location, ImageInsertionMode insertionMode);Public Function Add(ByVal image As Image, ByVal location As System.Drawing.Point, _
ByVal insertionMode As ImageInsertionMode) As Boolean| Parameter | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| image | Specifies the image to add. | ||||||||||||
| text |
Specifies the text position at which the image is to be inserted. If -1 is specified, the image is inserted at the current input position. | ||||||||||||
| alignment | Specifies the image's horizontal alignment. It can be one of the Horizontal
|
||||||||||||
| location | Specifies the location, in twips, at which the image is to be inserted. This is a location relative to the top left corner either of a page or of a paragraph. | ||||||||||||
| insertion |
Specifies how the text flow is handled. It can be one of the following values of the Image
|
||||||||||||
| page |
Specifies the number of a page beginning with 1 where the image is located. |
The return value is true, if the image could be added. Otherwise, it is false.
Learn more about the TXText