API Reference
VisioShape
Represents a shape on a Visio page.
Inheritance
- Object
- VisioShape
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method VisioStencilGalleryExtensions.AddStencilGallery
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioCalloutExtensions.AddCallout
- Method VisioCalloutExtensions.AddCallout
- Property VisioConnector.From
- Property VisioConnector.To
- Method VisioContainerEditingExtensions.AddToContainer
- Method VisioContainerEditingExtensions.ApplyContainerOptions
- Method VisioContainerEditingExtensions.ConfigureContainer
- Method VisioContainerEditingExtensions.GetContainerMembers
- Method VisioContainerEditingExtensions.RefitContainer
- Method VisioContainerEditingExtensions.RemoveFromContainer
- Method VisioContainerEditingExtensions.WrapInContainer
- Method VisioDataGraphicExtensions.AddDataGraphics
- Method VisioDataGraphicExtensions.AddDataGraphics
- Property VisioMaster.Shape
- Method VisioMasterEditingExtensions.ReplaceMaster
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddDataGraphics
- Extension method VisioPage.AddStencilGallery
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddToContainer
- Extension method VisioPage.AddToContainer
- Extension method VisioPage.AllShapes
- Extension method VisioPage.ApplyContainerOptions
- Extension method VisioPage.Callouts
- Extension method VisioPage.ConfigureContainer
- Extension method VisioPage.ConnectedComponent
- Extension method VisioPage.ConnectedShapes
- Extension method VisioPage.Containers
- Extension method VisioPage.FindShapeById
- Extension method VisioPage.GetContainerMembers
- Extension method VisioPage.PathBetween
- Extension method VisioPage.RefitContainer
- Extension method VisioPage.RemoveFromContainer
- Extension method VisioPage.RemoveFromContainer
- Extension method VisioPage.ReplaceMaster
- Extension method VisioPage.ReplaceMaster
- Extension method VisioPage.ReplaceMaster
- Extension method VisioPage.ShapesByMaster
- Extension method VisioPage.ShapesByName
- Extension method VisioPage.ShapesByNameU
- Extension method VisioPage.ShapesContainedIn
- Extension method VisioPage.ShapesContainedIn
- Extension method VisioPage.ShapesContainingText
- Extension method VisioPage.ShapesInLayer
- Extension method VisioPage.ShapesIntersecting
- Extension method VisioPage.ShapesIntersecting
- Extension method VisioPage.ShapesWithData
- Extension method VisioPage.ShapesWithData
- Extension method VisioPage.ShapesWithData
- Extension method VisioPage.ShapesWithHyperlink
- Extension method VisioPage.ShapesWithHyperlinks
- Extension method VisioPage.ShapesWithProtection
- Extension method VisioPage.ShapesWithProtection
- Extension method VisioPage.ShapesWithShapeData
- Extension method VisioPage.ShapesWithShapeData
- Extension method VisioPage.ShapesWithShapeData
- Extension method VisioPage.ShapesWithUserCell
- Extension method VisioPage.ShapesWithUserCell
- Method VisioPage.AddCircle
- Method VisioPage.AddCircle
- Method VisioPage.AddContainer
- Method VisioPage.AddContainer
- Method VisioPage.AddData
- Method VisioPage.AddData
- Method VisioPage.AddDecision
- Method VisioPage.AddDecision
- Method VisioPage.AddDiamond
- Method VisioPage.AddDiamond
- Method VisioPage.AddEllipse
- Method VisioPage.AddEllipse
- Method VisioPage.AddHexagon
- Method VisioPage.AddHexagon
- Method VisioPage.AddManualOperation
- Method VisioPage.AddManualOperation
- Method VisioPage.AddOffPageReference
- Method VisioPage.AddOffPageReference
- Method VisioPage.AddParallelogram
- Method VisioPage.AddParallelogram
- Method VisioPage.AddPentagon
- Method VisioPage.AddPentagon
- Method VisioPage.AddPreparation
- Method VisioPage.AddPreparation
- Method VisioPage.AddProcess
- Method VisioPage.AddProcess
- Method VisioPage.AddRectangle
- Method VisioPage.AddRectangle
- Method VisioPage.AddShape
- Method VisioPage.AddShape
- Method VisioPage.AddSquare
- Method VisioPage.AddSquare
- Method VisioPage.AddTextBox
- Method VisioPage.AddTextBox
- Method VisioPage.AddTextBox
- Method VisioPage.AddTextBox
- Method VisioPage.AddTrapezoid
- Method VisioPage.AddTrapezoid
- Method VisioPage.AddTriangle
- Method VisioPage.AddTriangle
- Method VisioPage.UngroupShape
- Property VisioPage.Shapes
- Method VisioPageQueryExtensions.AllShapes
- Method VisioPageQueryExtensions.Callouts
- Method VisioPageQueryExtensions.ConnectedComponent
- Method VisioPageQueryExtensions.ConnectedShapes
- Method VisioPageQueryExtensions.Containers
- Method VisioPageQueryExtensions.FindShapeById
- Method VisioPageQueryExtensions.PathBetween
- Method VisioPageQueryExtensions.ShapesByMaster
- Method VisioPageQueryExtensions.ShapesByName
- Method VisioPageQueryExtensions.ShapesByNameU
- Method VisioPageQueryExtensions.ShapesContainedIn
- Method VisioPageQueryExtensions.ShapesContainedIn
- Method VisioPageQueryExtensions.ShapesContainingText
- Method VisioPageQueryExtensions.ShapesInLayer
- Method VisioPageQueryExtensions.ShapesIntersecting
- Method VisioPageQueryExtensions.ShapesIntersecting
- Method VisioPageQueryExtensions.ShapesWithData
- Method VisioPageQueryExtensions.ShapesWithData
- Method VisioPageQueryExtensions.ShapesWithData
- Method VisioPageQueryExtensions.ShapesWithHyperlink
- Method VisioPageQueryExtensions.ShapesWithHyperlinks
- Method VisioPageQueryExtensions.ShapesWithProtection
- Method VisioPageQueryExtensions.ShapesWithProtection
- Method VisioPageQueryExtensions.ShapesWithShapeData
- Method VisioPageQueryExtensions.ShapesWithShapeData
- Method VisioPageQueryExtensions.ShapesWithShapeData
- Method VisioPageQueryExtensions.ShapesWithUserCell
- Method VisioPageQueryExtensions.ShapesWithUserCell
- Extension method VisioShape.ApplyStyle
- Extension method VisioShape.ApplyTextStyle
- Extension method VisioShape.MarkAsBackgroundSurface
- Extension method VisioShape.MarkAsGeneratedDiagramAdornment
- Extension method VisioShape.ResizeToText
- Method VisioShape.ClearLayoutPolicy
- Method VisioShape.ClearProtection
- Method VisioShape.FindDescendantById
- Method VisioShape.LockPosition
- Method VisioShape.LockSize
- Method VisioShape.Protect
- Property VisioShape.Children
- Property VisioShape.MasterShape
- Property VisioShape.Parent
- Method VisioShapeDataSchema.ApplyTo
- Property VisioShapeDuplicationOptions.ShapeIdFactory
- Extension method VisioShapeSelection.AddDataGraphics
- Extension method VisioShapeSelection.WrapInContainer
- Method VisioShapeSelection.GetEnumerator
- Property VisioShapeSelection.Item
- Method VisioShapeSemanticExtensions.MarkAsBackgroundSurface
- Method VisioShapeSemanticExtensions.MarkAsGeneratedDiagramAdornment
- Property VisioSwimlaneActivityPlacement.Shape
- Property VisioSwimlaneLane.Body
- Property VisioSwimlaneLane.Header
- Property VisioSwimlanePhase.Header
Accepted by parameters
- Method VisioFluentPage.ReplaceMasters
- Method VisioFluentPage.ReplaceMasters
- Method VisioFluentPage.ReplaceMasters
- Method VisioFluentPage.Shapes
- Constructor VisioFluentShape.VisioFluentShape
- Method VisioCalloutExtensions.AddCallout
- Method VisioCalloutExtensions.AddCallout
- Method VisioCalloutExtensions.AddCallout
- Method VisioCalloutExtensions.AddCallout
- Method VisioCommentExtensions.AddComment
- Method VisioCommentExtensions.CommentsForShape
- Constructor VisioConnector.VisioConnector
- Constructor VisioConnector.VisioConnector
- Constructor VisioConnector.VisioConnector
- Constructor VisioConnector.VisioConnector
- Extension method VisioConnector.ApplyStyle
- Extension method VisioConnector.ApplyTextStyle
- Extension method VisioConnector.RouteOrthogonalAroundShapes
- Extension method VisioConnector.RouteOrthogonalAroundShapes
- Method VisioConnectorRoutingExtensions.RouteOrthogonalAroundShapes
- Method VisioConnectorRoutingExtensions.RouteOrthogonalAroundShapes
- Method VisioConnectorRoutingExtensions.RouteOrthogonalAroundShapes
- Method VisioConnectorRoutingExtensions.RouteOrthogonalAroundShapes
- Extension method VisioConnectorSelection.ApplyStyle
- Extension method VisioConnectorSelection.ApplyTextStyle
- Extension method VisioConnectorSelection.RouteOrthogonalAroundShapes
- Extension method VisioConnectorSelection.RouteOrthogonalAroundShapes
- Method VisioContainerEditingExtensions.AddToContainer
- Method VisioContainerEditingExtensions.AddToContainer
- Method VisioContainerEditingExtensions.AddToContainer
- Method VisioContainerEditingExtensions.AddToContainer
- Method VisioContainerEditingExtensions.AddToContainer
- Method VisioContainerEditingExtensions.ApplyContainerOptions
- Method VisioContainerEditingExtensions.ConfigureContainer
- Method VisioContainerEditingExtensions.GetContainerInfo
- Method VisioContainerEditingExtensions.GetContainerMembers
- Method VisioContainerEditingExtensions.GetContainerOptions
- Method VisioContainerEditingExtensions.RefitContainer
- Method VisioContainerEditingExtensions.RemoveFromContainer
- Method VisioContainerEditingExtensions.RemoveFromContainer
- Method VisioContainerEditingExtensions.RemoveFromContainer
- Method VisioContainerEditingExtensions.RemoveFromContainer
- Method VisioContainerEditingExtensions.RemoveFromContainer
- Method VisioDataGraphicExtensions.AddDataGraphics
- Method VisioDocument.RegisterMaster
- Method VisioDuplicationExtensions.DuplicateShapes
- Method VisioDuplicationExtensions.DuplicateShapes
- Method VisioLayoutExtensions.GetShapeBounds
- Method VisioLayoutExtensions.GetShapeBounds
- Method VisioLayoutExtensions.ResizeToText
- Constructor VisioMaster.VisioMaster
- Method VisioMasterEditingExtensions.ReplaceMaster
- Method VisioMasterEditingExtensions.ReplaceMaster
- Method VisioMasterEditingExtensions.ReplaceMaster
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddCallout
- Extension method VisioPage.AddComment
- Extension method VisioPage.AddDataGraphics
- Extension method VisioPage.AddToContainer
- Extension method VisioPage.AddToContainer
- Extension method VisioPage.AddToContainer
- Extension method VisioPage.AddToContainer
- Extension method VisioPage.ApplyContainerOptions
- Extension method VisioPage.CommentsForShape
- Extension method VisioPage.CommentsForShape
- Extension method VisioPage.ConfigureContainer
- Extension method VisioPage.ConnectedComponent
- Extension method VisioPage.ConnectedConnectors
- Extension method VisioPage.ConnectedShapes
- Extension method VisioPage.DuplicateShapes
- Extension method VisioPage.DuplicateShapes
- Extension method VisioPage.GetContainerInfo
- Extension method VisioPage.GetContainerMembers
- Extension method VisioPage.GetContainerOptions
- Extension method VisioPage.IncomingConnectors
- Extension method VisioPage.OutgoingConnectors
- Extension method VisioPage.PathBetween
- Extension method VisioPage.PathBetween
- Extension method VisioPage.RefitContainer
- Extension method VisioPage.RemoveFromContainer
- Extension method VisioPage.RemoveFromContainer
- Extension method VisioPage.RemoveFromContainer
- Extension method VisioPage.RemoveFromContainer
- Extension method VisioPage.ReplaceMaster
- Extension method VisioPage.ReplaceMaster
- Extension method VisioPage.ReplaceMaster
- Extension method VisioPage.SelectConnectedComponent
- Extension method VisioPage.SelectConnectedConnectors
- Extension method VisioPage.SelectContainedIn
- Extension method VisioPage.SelectIncomingConnectors
- Extension method VisioPage.SelectIntersecting
- Extension method VisioPage.SelectOutgoingConnectors
- Extension method VisioPage.SelectPathBetween
- Extension method VisioPage.SelectPathBetween
- Extension method VisioPage.SelectShapes
- Extension method VisioPage.ShapesContainedIn
- Extension method VisioPage.ShapesIntersecting
- Method VisioPage.AddConnector
- Method VisioPage.AddConnector
- Method VisioPage.AddConnector
- Method VisioPage.AddConnector
- Method VisioPage.AddContainer
- Method VisioPage.AddToLayer
- Method VisioPage.ReconnectConnector
- Method VisioPage.ReconnectConnector
- Method VisioPage.ReconnectConnectorEnd
- Method VisioPage.ReconnectConnectorStart
- Method VisioPage.ReparentShape
- Method VisioPage.ReparentShape
- Method VisioPage.RetargetConnectors
- Method VisioPage.RetargetConnectors
- Method VisioPage.UngroupShape
- Method VisioPageQueryExtensions.ConnectedComponent
- Method VisioPageQueryExtensions.ConnectedConnectors
- Method VisioPageQueryExtensions.ConnectedShapes
- Method VisioPageQueryExtensions.IncomingConnectors
- Method VisioPageQueryExtensions.OutgoingConnectors
- Method VisioPageQueryExtensions.PathBetween
- Method VisioPageQueryExtensions.PathBetween
- Method VisioPageQueryExtensions.SelectConnectedComponent
- Method VisioPageQueryExtensions.SelectConnectedConnectors
- Method VisioPageQueryExtensions.SelectContainedIn
- Method VisioPageQueryExtensions.SelectIncomingConnectors
- Method VisioPageQueryExtensions.SelectIntersecting
- Method VisioPageQueryExtensions.SelectOutgoingConnectors
- Method VisioPageQueryExtensions.SelectPathBetween
- Method VisioPageQueryExtensions.SelectPathBetween
- Method VisioPageQueryExtensions.SelectShapes
- Method VisioPageQueryExtensions.ShapesContainedIn
- Method VisioPageQueryExtensions.ShapesIntersecting
- Extension method VisioShape.ApplyStyle
- Extension method VisioShape.ApplyTextStyle
- Extension method VisioShape.GetShapeBounds
- Extension method VisioShape.MarkAsBackgroundSurface
- Extension method VisioShape.MarkAsGeneratedDiagramAdornment
- Extension method VisioShape.ResizeToText
- Method VisioShapeDataSchema.ApplyTo
- Method VisioShapeDataSchema.ApplyTo
- Method VisioShapeDataSchema.Validate
- Constructor VisioShapeSelection.VisioShapeSelection
- Extension method VisioShapeSelection.AddToContainer
- Extension method VisioShapeSelection.ApplyStyle
- Extension method VisioShapeSelection.ApplyTextStyle
- Extension method VisioShapeSelection.GetShapeBounds
- Extension method VisioShapeSelection.RemoveFromContainer
- Extension method VisioShapeSelection.ResizeToText
- Method VisioShapeSelection.Text
- Method VisioShapeSemanticExtensions.MarkAsBackgroundSurface
- Method VisioShapeSemanticExtensions.MarkAsGeneratedDiagramAdornment
- Method VisioShapeStyle.ApplyTo
- Extension method VisioStencilMigrationMapBuilder.Map
- Extension method VisioStencilMigrationMapBuilder.Map
- Method VisioStencilMigrationMapBuilder.Map
- Method VisioStencilMigrationMapBuilderExtensions.Map
- Method VisioStencilMigrationMapBuilderExtensions.Map
- Method VisioStencilMigrationRule.ForPredicate
- Method VisioStyleExtensions.ApplyStyle
- Method VisioStyleExtensions.ApplyTextStyle
Constructors
public VisioShape(String id) #Initializes a new instance of the VisioShape class with the specified identifier.
Parameters
- id System.String
- Identifier of the shape.
public VisioShape(String id, Double pinX, Double pinY, Double width, Double height, String text) #Initializes a new instance of the VisioShape class.
Parameters
- id System.String
- Identifier of the shape.
- pinX System.Double
- X coordinate of the pin.
- pinY System.Double
- Y coordinate of the pin.
- width System.Double
- Width of the shape.
- height System.Double
- Height of the shape.
- text System.String
- Text contained within the shape.
Methods
public VisioHyperlink AddHyperlink(String address, String description = null, String subAddress = null) #VisioHyperlinkAdds a hyperlink to this shape.
Parameters
- address System.String
- External hyperlink address.
- description System.String = null
- Optional display description.
- subAddress System.String = null
- Optional internal sub-address.
Returns
The created hyperlink row.
public VisioHyperlink AddHyperlink(Uri address, String description = null, String subAddress = null) #VisioHyperlinkAdds a hyperlink to this shape.
Parameters
- address System.Uri
- External hyperlink address.
- description System.String = null
- Optional display description.
- subAddress System.String = null
- Optional internal sub-address.
Returns
The created hyperlink row.
public VisioShape ClearLayoutPolicy() #VisioShapeClears explicit Shape Layout override cells from this shape.
public VisioShape ClearProtection() #VisioShapeClears explicit ShapeSheet protection cells from this shape.
EnsureSideConnectionPoints() #Ensures the shape has four side connection points (Left, Right, Bottom, Top). If they already exist (>=4), nothing is added. Internal: users should not call this; side points are added automatically by the connector API when explicit sides are requested.
public VisioShape FindDescendantById(String id) #VisioShapeRecursively searches the shape hierarchy for a shape with the provided identifier.
Parameters
- id System.String
- Identifier to locate.
Returns
The matching shape when found; otherwise null.
public VisioShapeDataRow FindShapeData(String name) #VisioShapeDataRowFinds a Shape Data row by row name.
Parameters
- name System.String
- Shape Data row name.
public VisioUserCell FindUserCell(String name) #VisioUserCellFinds a user-defined ShapeSheet cell by row name.
Parameters
- name System.String
- User cell row name.
public ValueTuple<Double, Double> GetAbsolutePoint(Double x, Double y) #ValueTuple<Double, Double>Transforms a point from the shape's local coordinate system to the page coordinate system.
Parameters
- x System.Double
- X coordinate of the point relative to the shape's local coordinate system.
- y System.Double
- Y coordinate of the point relative to the shape's local coordinate system.
Returns
The point's absolute coordinates on the page.
public ValueTuple<Double, Double, Double, Double> GetBounds() #ValueTuple<Double, Double, Double, Double>Computes the absolute bounds of the shape on the page.
public String GetShapeDataValue(String name) #StringGets a Shape Data value by row name.
Parameters
- name System.String
- Shape Data row name.
public String GetUserCellValue(String name) #StringGets a user-defined ShapeSheet cell value by row name.
Parameters
- name System.String
- User cell row name.
public VisioShape LockPosition(Boolean locked = true) #VisioShapeLocks or unlocks this shape's position.
Parameters
- locked System.Boolean = true
public VisioShape LockSize(Boolean locked = true) #VisioShapeLocks or unlocks this shape's size.
Parameters
- locked System.Boolean = true
public VisioShape Protect(Action<VisioShapeProtection> configure) #VisioShapeConfigures ShapeSheet protection cells for this shape.
Parameters
- configure System.Action{OfficeIMO.Visio.VisioShapeProtection}
- Protection configuration delegate.
public VisioShapeDataRow SetShapeData(String name, String value, String label = null, Nullable<VisioShapeDataType> type = null, String prompt = null, String format = null) #VisioShapeDataRowSets or creates a Shape Data row.
Parameters
- name System.String
- Shape Data row name.
- value System.String
- Shape Data value.
- label System.String = null
- Optional label shown in Visio's Shape Data window.
- type System.Nullable{OfficeIMO.Visio.VisioShapeDataType} = null
- Optional Shape Data type.
- prompt System.String = null
- Optional help prompt.
- format System.String = null
- Optional format picture or list values.
public VisioUserCell SetUserCell(String name, String value, String unit = null, String formula = null, String prompt = null) #VisioUserCellSets or creates a user-defined ShapeSheet cell.
Parameters
- name System.String
- User cell row name.
- value System.String
- Value cell contents.
- unit System.String = null
- Optional unit.
- formula System.String = null
- Optional ShapeSheet formula.
- prompt System.String = null
- Optional prompt.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
PersistedId #Identifier stored in the package when different from Id.
public String NameU { get; set; } #Gets or sets the universal name of the shape.
public String Type { get; set; } #Gets or sets the Visio type of the shape (for example "Group").
public VisioMaster Master { get; set; } #Gets or sets the master associated with the shape.
public String MasterShapeId { get; set; } #Gets the identifier of the referenced master shape when Master is defined.
public VisioShape MasterShape { get; set; } #Gets the master shape instance referenced by MasterShapeId, if any.
public String MasterNameU { get; } #Gets the universal name of the master.
public Double PinX { get; set; } #Gets or sets the X coordinate of the pin.
public Double PinY { get; set; } #Gets or sets the Y coordinate of the pin.
public Double Width { get; set; } #Gets or sets the width of the shape.
public Double Height { get; set; } #Gets or sets the height of the shape.
public Double LineWeight { get; set; } #Gets or sets the line weight of the shape.
public Double LocPinX { get; set; } #Gets or sets the X coordinate of the local pin.
public Double LocPinY { get; set; } #Gets or sets the Y coordinate of the local pin.
public Double Angle { get; set; } #Gets or sets the rotation angle of the shape in radians.
public String Text { get; set; } #Gets or sets the text contained in the shape.
public VisioTextStyle TextStyle { get; set; } #Gets or sets whole-shape text formatting.
public OfficeColor LineColor { get; set; } #Line (border) color of the shape.
public OfficeColor FillColor { get; set; } #Fill color of the shape.
public Int32 LinePattern { get; set; } #Line pattern (0=None, 1=Solid, 2=Dashed, etc.).
public Int32 FillPattern { get; set; } #Fill pattern (0=None, 1=Solid, etc.).
public VisioShape Parent { get; set; } #Parent shape when part of a group hierarchy.
public IList<VisioShape> Children { get; } #Child shapes when this shape represents a group.
public IList<VisioConnectionPoint> ConnectionPoints { get; } #Connection points associated with the shape.
public ISet<String> LayerNames { get; } #Page layer names this shape belongs to.
public IList<VisioHyperlink> Hyperlinks { get; } #Hyperlinks attached to this shape.
public IList<VisioUserCell> UserCells { get; } #User-defined ShapeSheet cells attached to this shape.
public IList<VisioShapeDataRow> ShapeData { get; } #Visio Shape Data rows attached to this shape.
public VisioShapeProtection Protection { get; } #Visio ShapeSheet protection cells controlling interactive editing in Visio.
public Nullable<VisioPlacementStyle> PlacementStyle { get; set; } #Gets or sets the shape-level placement style Visio uses during page layout.
public Nullable<VisioPlacementFlip> PlacementFlip { get; set; } #Gets or sets how Visio may flip or rotate this shape during page layout.
public Nullable<VisioShapePlowCode> PlowCode { get; set; } #Gets or sets whether this shape moves away when another placeable shape is dropped nearby.
public Nullable<Boolean> AllowPlacementOnTop { get; set; } #Gets or sets whether other placeable shapes may be placed on top of this shape during layout.
public Nullable<Boolean> AllowHorizontalConnectorRoutingThrough { get; set; } #Gets or sets whether connectors may route horizontally through this shape.
public Nullable<Boolean> AllowVerticalConnectorRoutingThrough { get; set; } #Gets or sets whether connectors may route vertically through this shape.
public Nullable<Boolean> CanSplitShapes { get; set; } #Gets or sets whether this shape may split other splittable shapes.
public Nullable<Boolean> CanBeSplit { get; set; } #Gets or sets whether this shape can be split by another shape.
public IList<String> ContainerMemberIds { get; } #Shape identifiers this shape contains when it is used as a container.
public IList<String> ContainerOwnerIds { get; } #Container shape identifiers this shape belongs to.
public Boolean IsContainer { get; } #Gets whether this shape is marked as a Visio container.
public Boolean IsCallout { get; } #Gets whether this shape is marked as an OfficeIMO callout or annotation.
public Boolean IsBackgroundSurface { get; } #Gets whether this shape is marked as a background surface such as a region, zone, lane, or band.
public Boolean IsDiagramAdornment { get; } #Gets whether this shape is marked as a generated diagram adornment such as a title, legend item, or zone caption.
public String CalloutTargetId { get; } #Gets the target shape identifier for an OfficeIMO callout, if available.
PreservedGeometrySections #Geometry sections captured from a loaded package so custom shape outlines can be preserved on save.
public Dictionary<String, String> Data { get; } #Arbitrary data associated with the shape.
Fields
DefaultLineWeight #Default line weight used when Visio does not specify a value.
Extension Methods
public static VisioShape ApplyStyle(VisioShape shape, VisioShapeStyle style) #VisioShapeApplies a reusable style to a shape.
Parameters
- shape OfficeIMO.Visio.VisioShape
- style OfficeIMO.Visio.VisioShapeStyle
public static VisioShape ApplyTextStyle(VisioShape shape, VisioTextStyle style) #VisioShapeApplies a reusable text style to a shape.
Parameters
- shape OfficeIMO.Visio.VisioShape
- style OfficeIMO.Visio.VisioTextStyle
public static VisioShapeBounds GetShapeBounds(VisioShape shape) #VisioShapeBoundsGets the page-space bounds for a shape.
Parameters
- shape OfficeIMO.Visio.VisioShape
- Shape to inspect.
public static VisioShape MarkAsBackgroundSurface(VisioShape shape) #VisioShapeMarks a shape as a background surface such as a zone, subnet, lane, band, or grouping region.
Parameters
- shape OfficeIMO.Visio.VisioShape
- Shape to mark.
public static VisioShape MarkAsGeneratedDiagramAdornment(VisioShape shape) #VisioShapeMarks a generated label, title, legend item, or caption as a diagram adornment that quality checks and routing can treat as non-domain content.
Parameters
- shape OfficeIMO.Visio.VisioShape
- Shape to mark.
public static VisioShape ResizeToText(VisioShape shape, Nullable<OfficeFontInfo> fontInfo = null, Double horizontalPadding = 0.25, Double verticalPadding = 0.14, Double minimumWidth = 0.5, Double minimumHeight = 0.3) #VisioShapeResizes a shape to fit its plain text using deterministic OfficeIMO.Drawing measurement.
Parameters
- shape OfficeIMO.Visio.VisioShape
- Shape to resize.
- fontInfo System.Nullable{OfficeIMO.Drawing.OfficeFontInfo} = null
- Font descriptor used for measurement. Uses Office default when omitted.
- horizontalPadding System.Double = 0.25
- Horizontal padding in inches.
- verticalPadding System.Double = 0.14
- Vertical padding in inches.
- minimumWidth System.Double = 0.5
- Minimum resulting width in inches.
- minimumHeight System.Double = 0.3
- Minimum resulting height in inches.