Class OdfDrawGroupBuilder
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
Returns
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
xCmdoubleThe left position in centimeters. / 左側位置(公分)。
yCmdoubleThe top position in centimeters. / 上方位置(公分)。
widthCmdoubleThe width in centimeters. / 寬度(公分)。
heightCmdoubleThe height in centimeters. / 高度(公分)。
configureAction<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
textstringThe text content. / 文字內容。
xCmdoubleThe left position in centimeters. / 左側位置(公分)。
yCmdoubleThe top position in centimeters. / 上方位置(公分)。
widthCmdoubleThe width in centimeters. / 寬度(公分)。
heightCmdoubleThe height in centimeters. / 高度(公分)。
Returns
- OdfDrawGroupBuilder
The current builder instance. / 目前 builder 執行個體。