ITextRange.InsertImage(Int32, Int32, Int32, VerticalCharacterAlignment, String, IRandomAccessStream) ITextRange.InsertImage(Int32, Int32, Int32, VerticalCharacterAlignment, String, IRandomAccessStream) ITextRange.InsertImage(Int32, Int32, Int32, VerticalCharacterAlignment, String, IRandomAccessStream) ITextRange.InsertImage(Int32, Int32, Int32, VerticalCharacterAlignment, String, IRandomAccessStream) Method

Definition

Inserts an image into this range.

public : void InsertImage(int width, int height, int ascent, VerticalCharacterAlignment verticalAlign, Platform::String alternateText, IRandomAccessStream value)
void InsertImage(int32_t width, int32_t height, int32_t ascent, VerticalCharacterAlignment verticalAlign, winrt::hstring alternateText, IRandomAccessStream value) const;
public void InsertImage(Int32 width, Int32 height, Int32 ascent, VerticalCharacterAlignment verticalAlign, String alternateText, IRandomAccessStream value)
Public Sub InsertImage(width As Int32, height As Int32, ascent As Int32, verticalAlign As VerticalCharacterAlignment, alternateText As String, value As IRandomAccessStream)

Parameters

width
Int32 Int32

The width of the image, in Device-independent pixels (DIPs).

height
Int32 Int32

The height of the image, in DIPs.

ascent
Int32 Int32

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 VerticalCharacterAlignment

The vertical alignment of the image.

alternateText
String String

The alternate text for the image.

value
IRandomAccessStream IRandomAccessStream

The stream that contains the image data.