API Reference

Class

VisioFluentShape

Namespace OfficeIMO.Visio.Fluent
Assembly OfficeIMO.Visio

Fluent helper for configuring a shape (text, stroke, fill).

Inheritance

  • Object
  • VisioFluentShape

Usage

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

Accepted by parameters

Constructors

VisioFluentShape(OfficeIMO.Visio.VisioShape shape) #

Initializes a new shape wrapper.

Parameters

shape OfficeIMO.Visio.VisioShape required
Underlying shape model.

Methods

public VisioFluentShape Bold(Boolean enabled = true) #
Returns: VisioFluentShape

Sets whether the whole-shape text is bold.

Parameters

enabled System.Boolean = true optionalposition: 0
public VisioFluentShape ClearLayoutPolicy() #
Returns: VisioFluentShape

Clears explicit Shape Layout override cells.

public VisioFluentShape ConnectorPermeability(Boolean horizontal = true, Boolean vertical = true) #
Returns: VisioFluentShape

Allows or disallows connector routing through this shape.

Parameters

horizontal System.Boolean = true optionalposition: 0
vertical System.Boolean = true optionalposition: 1
public VisioFluentShape Fill(OfficeColor color, Int32 pattern = 1) #
Returns: VisioFluentShape

Sets fill color and optional pattern.

Parameters

color OfficeIMO.Drawing.OfficeColor requiredposition: 0
Fill color.
pattern System.Int32 = 1 optionalposition: 1
Fill pattern index (default 1=Solid).
public VisioFluentShape Font(String fontFamily) #
Returns: VisioFluentShape

Sets the whole-shape text font family.

Parameters

fontFamily System.String requiredposition: 0
public VisioFluentShape FontSize(Double size) #
Returns: VisioFluentShape

Sets the whole-shape text size in points.

Parameters

size System.Double requiredposition: 0
public VisioFluentShape Layer(String layerName) #
Returns: VisioFluentShape

Adds the shape to a page layer.

Parameters

layerName System.String requiredposition: 0
Layer name.
public VisioFluentShape PlacementFlip(VisioPlacementFlip flip) #
Returns: VisioFluentShape

Sets the shape-level Visio placement flip behavior.

Parameters

flip OfficeIMO.Visio.VisioPlacementFlip requiredposition: 0
public VisioFluentShape PlacementOnTop(Boolean allowed = true) #
Returns: VisioFluentShape

Allows or disallows placing other shapes on top of this shape during layout.

Parameters

allowed System.Boolean = true optionalposition: 0
public VisioFluentShape PlacementStyle(VisioPlacementStyle style) #
Returns: VisioFluentShape

Sets the shape-level Visio placement style.

Parameters

style OfficeIMO.Visio.VisioPlacementStyle requiredposition: 0
public VisioFluentShape Plow(VisioShapePlowCode code) #
Returns: VisioFluentShape

Sets the shape-level Visio plow behavior.

Parameters

code OfficeIMO.Visio.VisioShapePlowCode requiredposition: 0
public VisioFluentShape Protect(Action<VisioShapeProtection> configure) #
Returns: VisioFluentShape

Configures ShapeSheet protection cells.

Parameters

configure System.Action{OfficeIMO.Visio.VisioShapeProtection} requiredposition: 0
Protection configuration delegate.
public VisioFluentShape ShapeData(String name, String value, String label = null, Nullable<VisioShapeDataType> type = null, String prompt = null, String format = null) #
Returns: VisioFluentShape

Sets or replaces a Visio Shape Data row.

Parameters

name System.String requiredposition: 0
Shape Data row name.
value System.String requiredposition: 1
Shape Data value.
label System.String = null optionalposition: 2
Optional label shown in Visio's Shape Data window.
type System.Nullable{OfficeIMO.Visio.VisioShapeDataType} = null optionalposition: 3
Optional Shape Data type.
prompt System.String = null optionalposition: 4
Optional help prompt.
format System.String = null optionalposition: 5
Optional format picture or list values.
public VisioFluentShape ShapeSplitting(Boolean canSplit = true, Boolean canBeSplit = true) #
Returns: VisioFluentShape

Allows or disallows this shape splitting other shapes.

Parameters

canSplit System.Boolean = true optionalposition: 0
canBeSplit System.Boolean = true optionalposition: 1
public VisioFluentShape Stroke(OfficeColor color, Double weight = 0.0138889, Int32 pattern = 1) #
Returns: VisioFluentShape

Sets stroke color, weight (inches), and optional pattern.

Parameters

color OfficeIMO.Drawing.OfficeColor requiredposition: 0
Line color.
weight System.Double = 0.0138889 optionalposition: 1
Line weight in inches.
pattern System.Int32 = 1 optionalposition: 2
Line pattern index (default 1=Solid).
public VisioFluentShape Style(VisioShapeStyle style) #
Returns: VisioFluentShape

Applies a reusable shape style.

Parameters

style OfficeIMO.Visio.VisioShapeStyle requiredposition: 0
Shape style to apply.
public VisioFluentShape Text(String text) #
Returns: VisioFluentShape

Sets shape text.

Parameters

text System.String requiredposition: 0
Text content.
public VisioFluentShape TextAlignment(VisioTextHorizontalAlignment horizontal, Nullable<VisioTextVerticalAlignment> vertical = null) #
Returns: VisioFluentShape

Sets whole-shape text alignment.

Parameters

horizontal OfficeIMO.Visio.VisioTextHorizontalAlignment requiredposition: 0
vertical System.Nullable{OfficeIMO.Visio.VisioTextVerticalAlignment} = null optionalposition: 1
public VisioFluentShape TextColor(OfficeColor color) #
Returns: VisioFluentShape

Sets the whole-shape text color.

Parameters

color OfficeIMO.Drawing.OfficeColor requiredposition: 0
public VisioFluentShape UserCell(String name, String value, String unit = null, String formula = null, String prompt = null) #
Returns: VisioFluentShape

Sets or replaces a Visio User cell.

Parameters

name System.String requiredposition: 0
User cell row name.
value System.String requiredposition: 1
User cell value.
unit System.String = null optionalposition: 2
Optional Visio unit code.
formula System.String = null optionalposition: 3
Optional ShapeSheet formula.
prompt System.String = null optionalposition: 4
Optional prompt value.