Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioShapeStyle

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

Reusable visual style for Visio shapes.

Inheritance

  • object
  • VisioShapeStyle

Usage

Explore 21 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 9

Constructors

public VisioShapeStyle(OfficeColor fillColor, OfficeColor lineColor, double lineWeight = 0.0138889, int linePattern = 1, int fillPattern = 1) #

Initializes a new shape style.

Parameters

fillColor OfficeIMO.OfficeColor required
Fill color.
lineColor OfficeIMO.OfficeColor required
Line color.
lineWeight double = 0.0138889 optional
Line weight in inches.
linePattern int = 1 optional
Line pattern index.
fillPattern int = 1 optional
Fill pattern index.

Methods

public void ApplyTo(VisioShape shape) #

Applies this style to a shape.

Parameters

shape OfficeIMO.Visio.VisioShape required
Shape to update.
public VisioShapeStyle Clone() #

Creates a detached copy of this style.

Properties

public OfficeColor FillColor { get; set; } #

Fill color.

public OfficeColor LineColor { get; set; } #

Line color.

public double LineWeight { get; set; } #

Line weight in inches.

public int LinePattern { get; set; } #

Line pattern index.

public int FillPattern { get; set; } #

Fill pattern index.

public VisioTextStyle? TextStyle { get; set; } #

Optional text style to apply with this shape style.