Table of Contents

Class OdfConnectorInfo

Namespace
OdfKit.Drawing
Assembly
OdfKit.dll

Represents summary information for a connector on a drawing page. 表示繪圖頁面上一條連接線的摘要資訊。

public sealed class OdfConnectorInfo
Inheritance
OdfConnectorInfo
Inherited Members

Constructors

OdfConnectorInfo(string, string, OdfConnectorType, string?, string?, string?, string?, string?, string?, string?)

Represents summary information for a connector on a drawing page. 表示繪圖頁面上一條連接線的摘要資訊。

public OdfConnectorInfo(string pageName, string id, OdfConnectorType connectorType, string? startShapeId, string? endShapeId, string? startX, string? startY, string? endX, string? endY, string? points = null)

Parameters

pageName string

The name of the drawing page. / 所在繪圖頁面名稱。

id string

The connector identifier. / 連接線識別碼。

connectorType OdfConnectorType

The connector geometry type. / 連接線幾何類型。

startShapeId string

The start shape identifier (shape-linked mode). / 起點圖形識別碼(圖形連結模式)。

endShapeId string

The end shape identifier (shape-linked mode). / 終點圖形識別碼(圖形連結模式)。

startX string

The raw start X coordinate text (coordinate mode). / 起點 X 座標原文(座標模式)。

startY string

The raw start Y coordinate text (coordinate mode). / 起點 Y 座標原文(座標模式)。

endX string

The raw end X coordinate text (coordinate mode). / 終點 X 座標原文(座標模式)。

endY string

The raw end Y coordinate text (coordinate mode). / 終點 Y 座標原文(座標模式)。

points string

The custom routing vertex coordinate string (draw:points). / 自訂路由頂點座標字串(draw:points)。

Properties

ConnectorType

Gets the connector geometry type. 取得連接線幾何類型。

public OdfConnectorType ConnectorType { get; }

Property Value

OdfConnectorType

EndShapeId

Gets the end shape identifier. 取得終點圖形識別碼。

public string? EndShapeId { get; }

Property Value

string

EndX

Gets the raw end X coordinate text. 取得終點 X 座標原文。

public string? EndX { get; }

Property Value

string

EndY

Gets the raw end Y coordinate text. 取得終點 Y 座標原文。

public string? EndY { get; }

Property Value

string

Id

Gets the connector identifier. 取得連接線識別碼。

public string Id { get; }

Property Value

string

IsShapeLinked

Gets whether this connector links its endpoints by shape identifier. 取得此連接線是否以圖形識別碼連結起訖端點。

public bool IsShapeLinked { get; }

Property Value

bool

PageName

Gets the name of the drawing page. 取得所在繪圖頁面名稱。

public string PageName { get; }

Property Value

string

Points

Gets the custom routing vertex coordinate string. 取得自訂路由頂點座標字串。

public string? Points { get; }

Property Value

string

StartShapeId

Gets the start shape identifier. 取得起點圖形識別碼。

public string? StartShapeId { get; }

Property Value

string

StartX

Gets the raw start X coordinate text. 取得起點 X 座標原文。

public string? StartX { get; }

Property Value

string

StartY

Gets the raw start Y coordinate text. 取得起點 Y 座標原文。

public string? StartY { get; }

Property Value

string

Methods

TryGetEndPoint(out OdfLength, out OdfLength)

Attempts to parse the end point coordinates as OdfLength. 嘗試將終點座標解析為 OdfLength

public bool TryGetEndPoint(out OdfLength x, out OdfLength y)

Parameters

x OdfLength

The end X coordinate returned on successful parsing. / 解析成功時傳回的終點 X 座標。

y OdfLength

The end Y coordinate returned on successful parsing. / 解析成功時傳回的終點 Y 座標。

Returns

bool

true if both coordinates can be parsed. / 若兩座標皆可解析則為 true

TryGetStartPoint(out OdfLength, out OdfLength)

Attempts to parse the start point coordinates as OdfLength. 嘗試將起點座標解析為 OdfLength

public bool TryGetStartPoint(out OdfLength x, out OdfLength y)

Parameters

x OdfLength

The start X coordinate returned on successful parsing. / 解析成功時傳回的起點 X 座標。

y OdfLength

The start Y coordinate returned on successful parsing. / 解析成功時傳回的起點 Y 座標。

Returns

bool

true if both coordinates can be parsed. / 若兩座標皆可解析則為 true