CanvasShapes.AddLabel 方法

定义

在绘图画布上添加一个文本标签。

public:
 Microsoft::Office::Interop::Word::Shape ^ AddLabel(Microsoft::Office::Core::MsoTextOrientation Orientation, float Left, float Top, float Width, float Height);
public Microsoft.Office.Interop.Word.Shape AddLabel (Microsoft.Office.Core.MsoTextOrientation Orientation, float Left, float Top, float Width, float Height);
abstract member AddLabel : Microsoft.Office.Core.MsoTextOrientation * single * single * single * single -> Microsoft.Office.Interop.Word.Shape
Public Function AddLabel (Orientation As MsoTextOrientation, Left As Single, Top As Single, Width As Single, Height As Single) As Shape

参数

Orientation
MsoTextOrientation

文本的方向。

Left
Single

标签左边缘相对于绘图画布左边缘的位置(以磅为单位)。

Top
Single

标签上边缘相对于绘图画布上边缘的位置(以磅为单位)。

Width
Single

标签的宽度(以磅为单位)。

Height
Single

标签的高度(以磅为单位)。

返回

适用于