Class OdfConnectorInfo
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
pageNamestringThe name of the drawing page. / 所在繪圖頁面名稱。
idstringThe connector identifier. / 連接線識別碼。
connectorTypeOdfConnectorTypeThe connector geometry type. / 連接線幾何類型。
startShapeIdstringThe start shape identifier (shape-linked mode). / 起點圖形識別碼(圖形連結模式)。
endShapeIdstringThe end shape identifier (shape-linked mode). / 終點圖形識別碼(圖形連結模式)。
startXstringThe raw start X coordinate text (coordinate mode). / 起點 X 座標原文(座標模式)。
startYstringThe raw start Y coordinate text (coordinate mode). / 起點 Y 座標原文(座標模式)。
endXstringThe raw end X coordinate text (coordinate mode). / 終點 X 座標原文(座標模式)。
endYstringThe raw end Y coordinate text (coordinate mode). / 終點 Y 座標原文(座標模式)。
pointsstringThe custom routing vertex coordinate string (
draw:points). / 自訂路由頂點座標字串(draw:points)。
Properties
ConnectorType
Gets the connector geometry type. 取得連接線幾何類型。
public OdfConnectorType ConnectorType { get; }
Property Value
EndShapeId
Gets the end shape identifier. 取得終點圖形識別碼。
public string? EndShapeId { get; }
Property Value
EndX
Gets the raw end X coordinate text. 取得終點 X 座標原文。
public string? EndX { get; }
Property Value
EndY
Gets the raw end Y coordinate text. 取得終點 Y 座標原文。
public string? EndY { get; }
Property Value
Id
Gets the connector identifier. 取得連接線識別碼。
public string Id { get; }
Property Value
IsShapeLinked
Gets whether this connector links its endpoints by shape identifier. 取得此連接線是否以圖形識別碼連結起訖端點。
public bool IsShapeLinked { get; }
Property Value
PageName
Gets the name of the drawing page. 取得所在繪圖頁面名稱。
public string PageName { get; }
Property Value
Points
Gets the custom routing vertex coordinate string. 取得自訂路由頂點座標字串。
public string? Points { get; }
Property Value
StartShapeId
Gets the start shape identifier. 取得起點圖形識別碼。
public string? StartShapeId { get; }
Property Value
StartX
Gets the raw start X coordinate text. 取得起點 X 座標原文。
public string? StartX { get; }
Property Value
StartY
Gets the raw start Y coordinate text. 取得起點 Y 座標原文。
public string? StartY { get; }
Property Value
Methods
TryGetEndPoint(out OdfLength, out OdfLength)
public bool TryGetEndPoint(out OdfLength x, out OdfLength y)
Parameters
xOdfLengthThe end X coordinate returned on successful parsing. / 解析成功時傳回的終點 X 座標。
yOdfLengthThe end Y coordinate returned on successful parsing. / 解析成功時傳回的終點 Y 座標。
Returns
TryGetStartPoint(out OdfLength, out OdfLength)
public bool TryGetStartPoint(out OdfLength x, out OdfLength y)
Parameters
xOdfLengthThe start X coordinate returned on successful parsing. / 解析成功時傳回的起點 X 座標。
yOdfLengthThe start Y coordinate returned on successful parsing. / 解析成功時傳回的起點 Y 座標。