POLYLINE Function

Office 2013 and later

Last modified: March 09, 2015

Applies to: Office 2013 | Visio 2013

In this article
Syntax
Remarks
Example

Returns a polyline. This function is used in the A cell of PolyLineTo geometry rows.

POLYLINE(xType, yType, x1, y1...)

Parameters

Name

Required/Optional

Data Type

Description

xType

Required

Boolean

Specifies how to interpret the x input data. If xType is 0, the input x-data is interpreted as a percentage of Width. If xType is 1, the input x-data is interpreted as a local coordinate.

yType

Required

Boolean

Specifies how to interpret the y-input data. If yType is 0, the input y-data is interpreted as a percentage of Height. If yType is 1, the input y-data is interpreted as a local coordinate.

x1

Required

Number

An x-coordinate.

y1

Required

Number

A y-coordinate.

For every x argument, there must be a y argument; otherwise, an error is returned.

POLYLINE (0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0)

Returns a rectangle of dimensions Width x Height.

Show: