CanvasShapes.AddLabel Method
Word Developer Reference |
Adds a text label to a drawing canvas. Returns a Shapes object that represents the text label.
Syntax
expression.AddLabel(Orientation, Left, Top, Width, Height)
expression Required. A variable that represents a CanvasShapes collection.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Orientation | Required | MsoText | The orientation of the text. |
Left | Required | Single | The position, measured in points, of the left edge of the label relative to the left edge of the drawing canvas. |
Top | Required | Single | The position, measured in points, of the top edge of the label relative to the top edge of the drawing canvas. |
Width | Required | Single | The width of the label, in points. |
Height | Required | Single | The height of the label, in points. |
Example
This example adds a blue text label with the text "Hello World" to a new drawing canvas in the active document.
Visual Basic for Applications |
---|
|
Visual Basic for Applications |
---|
|
Visual Basic for Applications |
---|
|
See Also