ITextRange.InsertImage 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将图像插入到此区域。
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
 
如果 verticalAlign 为 Baseline,则此参数是图像顶部超出文本基线的距离(以 DIP 为单位)。 如果 verticalAlign 为 Baseline 且 ascent 为零,则图像底部位于文本基线处。
- verticalAlign
 - VerticalCharacterAlignment
 
图像的垂直对齐方式。
- alternateText
 - 
				
				String
Platform::String
winrt::hstring
 
图像的备用文本。
- value
 - IRandomAccessStream
 
包含图像数据的流。