ITextRange.InsertImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts an image into this range.
public:
void InsertImage(int width, int height, int ascent, VerticalCharacterAlignment verticalAlign, Platform::String ^ alternateText, IRandomAccessStream ^ value);
void InsertImage(int const& width, int const& height, int const& ascent, VerticalCharacterAlignment const& verticalAlign, winrt::hstring const& alternateText, IRandomAccessStream const& value);
public void InsertImage(int width, int height, int ascent, VerticalCharacterAlignment verticalAlign, string alternateText, IRandomAccessStream value);
function insertImage(width, height, ascent, verticalAlign, alternateText, value)
Public Sub InsertImage (width As Integer, height As Integer, ascent As Integer, verticalAlign As VerticalCharacterAlignment, alternateText As String, value As IRandomAccessStream)
Parameters
- width
-
Int32
int
The width of the image, in Device-independent pixels (DIPs).
- height
-
Int32
int
The height of the image, in DIPs.
- ascent
-
Int32
int
If verticalAlign is Baseline, this parameter is the distance, in DIPs, that the top of the image extends above the text baseline. If verticalAlign is Baseline and ascent is zero, the bottom of the image is placed at the text baseline.
- verticalAlign
- VerticalCharacterAlignment
The vertical alignment of the image.
- alternateText
-
String
Platform::String
winrt::hstring
The alternate text for the image.
- value
- IRandomAccessStream
The stream that contains the image data.