OfficeIMO

API Reference

Class

VisioFluentPage

Namespace OfficeIMO.Visio.Fluent
Assembly OfficeIMO.Visio

Fluent builder for a single Visio page. Provides direct verbs like Rect/Ellipse/Diamond/Triangle/Connect, consistent with other OfficeIMO fluent APIs.

Inheritance

  • Object
  • VisioFluentPage

Constructors

VisioFluentPage(OfficeIMO.Visio.Fluent.VisioFluentDocument fluent, OfficeIMO.Visio.VisioPage page) #

Initializes a new fluent page wrapper.

Parameters

fluent OfficeIMO.Visio.Fluent.VisioFluentDocument required
Parent fluent document.
page OfficeIMO.Visio.VisioPage required
Underlying page model.

Methods

public VisioFluentPage Circle(String id, Double x, Double y, Double diameter, String text = null) #
Returns: VisioFluentPage

Adds a circle by diameter.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
diameter System.Double requiredposition: 3
text System.String = null optionalposition: 4
Connect 2 overloads
public VisioFluentPage Connect(String fromId, String toId, Action<VisioFluentConnector> configure = null) #
Returns: VisioFluentPage

Connects two shapes by id and optionally configures the connector.

Parameters

fromId System.String requiredposition: 0
toId System.String requiredposition: 1
configure System.Action{OfficeIMO.Visio.Fluent.VisioFluentConnector} = null optionalposition: 2
public VisioFluentPage Connect(String fromId, String toId, VisioSide fromSide, VisioSide toSide, Action<VisioFluentConnector> configure = null) #
Returns: VisioFluentPage

Connects two shapes by id and preselects connector sides.

Parameters

fromId System.String requiredposition: 0
toId System.String requiredposition: 1
fromSide OfficeIMO.Visio.VisioSide requiredposition: 2
toSide OfficeIMO.Visio.VisioSide requiredposition: 3
configure System.Action{OfficeIMO.Visio.Fluent.VisioFluentConnector} = null optionalposition: 4
public VisioFluentPage Data(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a flowchart data shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Decision(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a flowchart decision shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Diamond(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a diamond (rhombus) shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Ellipse(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds an ellipse shape with explicit width/height.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentDocument EndPage() #
Returns: VisioFluentDocument

Returns to the document-level fluent builder for chaining.

public VisioFluentPage Hexagon(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a hexagon shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage ManualOperation(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a flowchart manual operation shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Master(String id, String masterNameU, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a shape using a document-registered master.

Parameters

id System.String requiredposition: 0
masterNameU System.String requiredposition: 1
x System.Double requiredposition: 2
y System.Double requiredposition: 3
width System.Double requiredposition: 4
height System.Double requiredposition: 5
text System.String = null optionalposition: 6
public VisioFluentPage OffPageReference(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a flowchart off-page reference shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Parallelogram(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a parallelogram shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Pentagon(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a pentagon shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Preparation(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a flowchart preparation shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Process(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a flowchart process shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Rect(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a rectangle shape with inline geometry.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Shape(String id, Action<VisioFluentShape> configure) #
Returns: VisioFluentPage

Configures an existing shape (text, stroke, fill, etc.).

Parameters

id System.String requiredposition: 0
configure System.Action{OfficeIMO.Visio.Fluent.VisioFluentShape} requiredposition: 1
public VisioFluentPage Size(Double width, Double height, VisioMeasurementUnit unit = Inches) #
Returns: VisioFluentPage

Sets page size.

Parameters

width System.Double requiredposition: 0
Width value in the specified unit.
height System.Double requiredposition: 1
Height value in the specified unit.
unit OfficeIMO.Visio.VisioMeasurementUnit = Inches optionalposition: 2
Measurement unit (defaults to inches).
public VisioFluentPage Square(String id, Double x, Double y, Double size, String text = null) #
Returns: VisioFluentPage

Adds a square shape (width = height = size).

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
size System.Double requiredposition: 3
text System.String = null optionalposition: 4
public VisioFluentPage Trapezoid(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds a trapezoid shape.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5
public VisioFluentPage Triangle(String id, Double x, Double y, Double width, Double height, String text = null) #
Returns: VisioFluentPage

Adds an isosceles triangle with explicit width and height.

Parameters

id System.String requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
text System.String = null optionalposition: 5