Table of Contents

Class OdfDrawGroup

Namespace
OdfKit.Drawing
Assembly
OdfKit.dll

Represents an ODF drawing group. 表示 ODF 繪圖群組。

public sealed class OdfDrawGroup : OdfShape
Inheritance
OdfDrawGroup
Inherited Members

Constructors

OdfDrawGroup(OdfNode, OdfDocument)

Represents an ODF drawing group. 表示 ODF 繪圖群組。

public OdfDrawGroup(OdfNode node, OdfDocument doc)

Parameters

node OdfNode

The underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。

doc OdfDocument

The owning ODF document instance. / 所屬的 ODF 文件執行個體。

Properties

Name

Gets or sets the group name. 取得或設定群組名稱。

public string? Name { get; set; }

Property Value

string

Methods

AddConnector(string, string)

Short overload of AddConnector that accepts startShapeId and endShapeId; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 startShapeId 與 endShapeId;其餘可選參數使用預設值並轉呼叫最長 AddConnector 多載。

public OdfShape AddConnector(string startShapeId, string endShapeId)

Parameters

startShapeId string
endShapeId string

Returns

OdfShape

AddConnector(string, string, OdfConnectorType)

Adds a connector within the group. 在群組內新增連接線。

public OdfShape AddConnector(string startShapeId, string endShapeId, OdfConnectorType connectorType)

Parameters

startShapeId string

The start shape identifier. / 起點圖形識別碼。

endShapeId string

The end shape identifier. / 終點圖形識別碼。

connectorType OdfConnectorType

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

Returns

OdfShape

The newly added connector shape instance. / 新增的連接線圖形執行個體。

AddShape(OdfShapeType, OdfLength, OdfLength, OdfLength, OdfLength)

Adds a shape within the group. 在群組內新增圖形。

public OdfShape AddShape(OdfShapeType shapeType, OdfLength x, OdfLength y, OdfLength w, OdfLength h)

Parameters

shapeType OdfShapeType

The shape type. / 圖形類型。

x OdfLength

The X-axis position. / X 軸座標位置。

y OdfLength

The Y-axis position. / Y 軸座標位置。

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

Returns

OdfShape

The newly added shape instance. / 新增的圖形執行個體。

AddTextBox(OdfLength, OdfLength, OdfLength, OdfLength, string)

Adds a text box within the group. 在群組內新增文字方塊。

public OdfTextBox AddTextBox(OdfLength x, OdfLength y, OdfLength w, OdfLength h, string text)

Parameters

x OdfLength

The X-axis position. / X 軸座標位置。

y OdfLength

The Y-axis position. / Y 軸座標位置。

w OdfLength

The width. / 寬度。

h OdfLength

The height. / 高度。

text string

The text content. / 文字內容。

Returns

OdfTextBox

The newly added text box instance. / 新增的文字方塊執行個體。