ITextRange.InsertImage メソッド

定義

この範囲に画像を挿入します。

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)

パラメーター

width
Int32

int

デバイスに依存しないピクセル (DIP) でのイメージの幅。

height
Int32

int

画像の高さ (DIP 単位)。

ascent
Int32

int

verticalAlignBaseline の場合、このパラメーターは、画像の上部がテキストベースラインの上に伸びる距離 (DIP) です。 verticalAlignBaseline で、アセントが 0 の場合、画像の下部はテキストのベースラインに配置されます。

verticalAlign
VerticalCharacterAlignment

画像の垂直方向の配置。

alternateText
String

Platform::String

winrt::hstring

画像の代替テキスト。

value
IRandomAccessStream

イメージ データを含むストリーム。

適用対象