'Declaration Public Function AddShape( _ ByVal width As Single, _ ByVal height As Single, _ Optional ByVal fillColor As Nullable(Of Color), _ Optional ByVal outlineColor As Nullable(Of Color), _ Optional ByVal outlineWidth As Single, _ Optional ByVal outlineDash As Nullable(Of DashStyle) _ ) As Shape
'Usage Dim instance As Document Dim width As Single Dim height As Single Dim fillColor As Nullable(Of Color) Dim outlineColor As Nullable(Of Color) Dim outlineWidth As Single Dim outlineDash As Nullable(Of DashStyle) Dim value As Shape value = instance.AddShape(width, height, fillColor, outlineColor, outlineWidth, outlineDash)
public Shape AddShape( float width, float height, Nullable<Color> fillColor, Nullable<Color> outlineColor, float outlineWidth, Nullable<DashStyle> outlineDash )
Parameters
- width
- The width of the Shape (in points).
- height
- The height of the Shape (in points).
- fillColor
- The Color used to fill the Shape. If not defined, blue("4472C4") is used.
- outlineColor
- The Color used for the outline of the Shape. If not defined, dark blue("2F528F") is used.
- outlineWidth
- The width used for the outline of the Shape (in points). If not defined, 1 is used.
- outlineDash
- The dash style used for the outline of the Shape. If not defined, Solid is used.
Return Value
The newly created Shape.