次の方法で共有


Shapes.AddLabel メソッド

定義

文書にテキスト ラベルを追加します。 テキスト ラベルを Shape 表す オブジェクトを返し、コレクションに Shapes 追加します。

public Microsoft.Office.Interop.Word.Shape AddLabel (Microsoft.Office.Core.MsoTextOrientation Orientation, float Left, float Top, float Width, float Height, ref object Anchor);
abstract member AddLabel : Microsoft.Office.Core.MsoTextOrientation * single * single * single * single * obj -> Microsoft.Office.Interop.Word.Shape
Public Function AddLabel (Orientation As MsoTextOrientation, Left As Single, Top As Single, Width As Single, Height As Single, Optional ByRef Anchor As Object) As Shape

パラメーター

Orientation
MsoTextOrientation

必須 MsoTextOrientation。 テキストの向き。MsoTextOrientation は、次のいずれかの定数を使用できます。msoTextOrientationDownward msoTextOrientationHorizontalMsoTextOrientationHorizontalRotatedFarEast msoTextOrientationMixed msoTextOrientationUpward msoTextOrientationVertical msoTextOrientationVerticalFarEast これらの定数の一部は使用できない場合があります。 選択またはインストールした言語のサポート (米国英語など) に応じて異なります。

Left
Single

単精度浮動小数点型 (Single) の値を使用します。 アンカーに対するラベルの左端の位置をポイント単位で測定します。

Top
Single

単精度浮動小数点型 (Single) の値を使用します。 アンカーに対するラベルの上端の位置をポイント単位で測定します。

Width
Single

単精度浮動小数点型 (Single) の値を使用します。 ラベルの幅をポイント単位で指定します。

Height
Single

単精度浮動小数点型 (Single) の値を使用します。 ラベルの高さをポイント単位で指定します。

Anchor
Object

省略可能 なオブジェクトRangeラベルのバインド先のテキストを表す オブジェクト。 が指定されている場合 Anchor 、アンカーはアンカー範囲の最初の段落の先頭に配置されます。 この引数を省略すると、アンカー範囲が自動的に選択され、ラベルはページの上端と左端を基準にして配置されます。

戻り値

適用対象