Class OdfDrawGroup
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
nodeOdfNodeThe underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。
docOdfDocumentThe owning ODF document instance. / 所屬的 ODF 文件執行個體。
Properties
Name
Gets or sets the group name. 取得或設定群組名稱。
public string? Name { get; set; }
Property Value
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
Returns
AddConnector(string, string, OdfConnectorType)
Adds a connector within the group. 在群組內新增連接線。
public OdfShape AddConnector(string startShapeId, string endShapeId, OdfConnectorType connectorType)
Parameters
startShapeIdstringThe start shape identifier. / 起點圖形識別碼。
endShapeIdstringThe end shape identifier. / 終點圖形識別碼。
connectorTypeOdfConnectorTypeThe 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
shapeTypeOdfShapeTypeThe shape type. / 圖形類型。
xOdfLengthThe X-axis position. / X 軸座標位置。
yOdfLengthThe Y-axis position. / Y 軸座標位置。
wOdfLengthThe width. / 寬度。
hOdfLengthThe 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
xOdfLengthThe X-axis position. / X 軸座標位置。
yOdfLengthThe Y-axis position. / Y 軸座標位置。
wOdfLengthThe width. / 寬度。
hOdfLengthThe height. / 高度。
textstringThe text content. / 文字內容。
Returns
- OdfTextBox
The newly added text box instance. / 新增的文字方塊執行個體。