Table of Contents

Class OdfDrawGroupBuilder

Namespace
OdfKit.Drawing
Assembly
OdfKit.dll

Provides a fluent creation API for drawing groups. 提供繪圖群組的 Fluent 建立 API。

public sealed class OdfDrawGroupBuilder
Inheritance
OdfDrawGroupBuilder
Inherited Members

Methods

AddRectangle(double, double, double, double)

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

public OdfDrawGroupBuilder AddRectangle(double xCm, double yCm, double widthCm, double heightCm)

Parameters

xCm double
yCm double
widthCm double
heightCm double

Returns

OdfDrawGroupBuilder

AddRectangle(double, double, double, double, Action<OdfDrawShapeBuilder>?)

Adds a rectangle within the group. 新增群組內矩形。

public OdfDrawGroupBuilder AddRectangle(double xCm, double yCm, double widthCm, double heightCm, Action<OdfDrawShapeBuilder>? configure)

Parameters

xCm double

The left position in centimeters. / 左側位置(公分)。

yCm double

The top position in centimeters. / 上方位置(公分)。

widthCm double

The width in centimeters. / 寬度(公分)。

heightCm double

The height in centimeters. / 高度(公分)。

configure Action<OdfDrawShapeBuilder>

The shape configuration delegate. / 圖形設定委派。

Returns

OdfDrawGroupBuilder

The current builder instance. / 目前 builder 執行個體。

AddTextBox(string, double, double, double, double)

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

public OdfDrawGroupBuilder AddTextBox(string text, double xCm, double yCm, double widthCm, double heightCm)

Parameters

text string

The text content. / 文字內容。

xCm double

The left position in centimeters. / 左側位置(公分)。

yCm double

The top position in centimeters. / 上方位置(公分)。

widthCm double

The width in centimeters. / 寬度(公分)。

heightCm double

The height in centimeters. / 高度(公分)。

Returns

OdfDrawGroupBuilder

The current builder instance. / 目前 builder 執行個體。