Table of Contents

Class OdfCustomShapeInfo

Namespace
OdfKit.Drawing
Assembly
OdfKit.dll

Represents summary information for a custom shape on a drawing page. 表示繪圖頁面上一個自定義幾何圖形的摘要資訊。

public sealed class OdfCustomShapeInfo
Inheritance
OdfCustomShapeInfo
Inherited Members

Constructors

OdfCustomShapeInfo(string, string, string, string?, string?, string?, string?)

Represents summary information for a custom shape on a drawing page. 表示繪圖頁面上一個自定義幾何圖形的摘要資訊。

public OdfCustomShapeInfo(string pageName, string id, string geometryType, string? x, string? y, string? width, string? height)

Parameters

pageName string

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

id string

The shape identifier. / 圖形識別碼。

geometryType string

The enhanced geometry type name (draw:enhanced-geometry/@draw:type). / 增強幾何類型名稱(draw:enhanced-geometry/@draw:type)。

x string

The raw bounding box X coordinate text. / 邊界盒 X 座標原文。

y string

The raw bounding box Y coordinate text. / 邊界盒 Y 座標原文。

width string

The raw bounding box width text. / 邊界盒寬度原文。

height string

The raw bounding box height text. / 邊界盒高度原文。

Properties

GeometryType

Gets the enhanced geometry type name. 取得增強幾何類型名稱。

public string GeometryType { get; }

Property Value

string

Height

Gets the raw bounding box height text. 取得邊界盒高度原文。

public string? Height { get; }

Property Value

string

Id

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

public string Id { get; }

Property Value

string

PageName

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

public string PageName { get; }

Property Value

string

Width

Gets the raw bounding box width text. 取得邊界盒寬度原文。

public string? Width { get; }

Property Value

string

X

Gets the raw bounding box X coordinate text. 取得邊界盒 X 座標原文。

public string? X { get; }

Property Value

string

Y

Gets the raw bounding box Y coordinate text. 取得邊界盒 Y 座標原文。

public string? Y { get; }

Property Value

string

Methods

TryGetHeight(out OdfLength)

Attempts to parse Height as an OdfLength. 嘗試將 Height 解析為 OdfLength

public bool TryGetHeight(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true

TryGetWidth(out OdfLength)

Attempts to parse Width as an OdfLength. 嘗試將 Width 解析為 OdfLength

public bool TryGetWidth(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true

TryGetX(out OdfLength)

Attempts to parse X as an OdfLength. 嘗試將 X 解析為 OdfLength

public bool TryGetX(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true

TryGetY(out OdfLength)

Attempts to parse Y as an OdfLength. 嘗試將 Y 解析為 OdfLength

public bool TryGetY(out OdfLength length)

Parameters

length OdfLength

The length value returned on successful parsing. / 解析成功時傳回的長度值。

Returns

bool

true if parsing succeeded. / 若解析成功則為 true