Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeVisioEllipse

Aliases: VisioEllipse
Module
PSWriteOffice
Aliases
VisioEllipse
Inputs
OfficeIMO.Visio.VisioPage
Outputs
OfficeIMO.Visio.VisioShape

Adds an ellipse shape to the current Visio page.

Syntax

Add-OfficeVisioEllipse
[-Alignment <OfficeAlignment>]
[-Angle <Double>]
[-Bold]
[-Color <OfficeColor>]
[-FillColor <OfficeColor>]
[-FillPattern <Int32>]
[-Font <String>]
[-Height <OfficeLength>]
[-Italic]
[-Key <String>]
[-LineColor <OfficeColor>]
[-LinePattern <Int32>]
[-LineWeight <OfficeLength>]
[-Name <String>]
[-NameU <String>]
[-Page <VisioPage>]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[[-Text] <String>]
[-Underline <Single|Double>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]
#
Parameter set: Page

Examples

Add a start node.

New-OfficeVisio -Path .\Flow.vsdx {
    VisioEllipse -Key start -Text 'Start' -X 1in -Y 5in -Width 1.4in -Height 0.7in -FillColor '#DCFCE7'
}

Adds an ellipse to the active Visio page.

Parameters

-Alignment OfficeAlignment optional
Whole-shape horizontal text alignment.
Possible values: Left, Center, Right, Justify, Start, End
-Angle Double optional
Rotation in degrees.
-Bold SwitchParameter optional
Apply bold text; explicit false clears it.
-Color OfficeColor optional
Text color, including CSS names and theme roles.
-FillColor OfficeColor optional
Fill color or semantic role resolved through the default Office theme.
-FillPattern Int32 optional
Native fill pattern: 0 has no fill, 1 is solid, and 2 through 40 select built-in patterns.
-Font String optional
Font family for the shape's text.
-Height OfficeLength optional
Physical shape height.
-Italic SwitchParameter optional
Apply italic text; explicit false clears it.
-Key String optional
Key used by connector and layout commands within the block.
-LineColor OfficeColor optional
Line color or semantic role resolved through the default Office theme.
-LinePattern Int32 optional
Native line pattern: 0 hides the line, 1 is solid, and 2 through 23 select built-in patterns.
-LineWeight OfficeLength optional
Physical outline weight.
-Name String optional
Optional shape name; otherwise Key is used.
-NameU String optional
Optional universal shape name.
-Page VisioPage optionalpipeline: True (ByValue)
Target page; the current page is used inside a Visio content block.
-PassThru SwitchParameter optional
Emit the object created or changed by the command.
-Size OfficeLength optional
Font size; a number means points.
-Strikethrough SwitchParameter optional
Apply one strikethrough line; explicit false clears it.
-Text String optionalposition: 0
Text placed inside the shape.
-Underline OfficeTextDecorationStyle optional
Native Visio underline variant.
Possible values: Single, Double
-Width OfficeLength optional
Physical shape width.
-X OfficeLength optional
Shape pin's X coordinate. A number means points.
-Y OfficeLength optional
Shape pin's Y coordinate. A number means points.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.