Class OdfDrawShapeBuilder
Provides a fluent configuration API for drawing shapes. 提供繪圖圖形的 Fluent 設定 API。
public sealed class OdfDrawShapeBuilder
- Inheritance
-
OdfDrawShapeBuilder
- Inherited Members
Methods
Fill(string)
Sets the fill color. 設定填滿色彩。
public OdfDrawShapeBuilder Fill(string color)
Parameters
colorstringThe color value. / 色彩值。
Returns
- OdfDrawShapeBuilder
The current builder instance. / 目前 builder 執行個體。
OnLayer(string)
Assigns the layer the shape belongs to. 指派圖形所屬圖層。
public OdfDrawShapeBuilder OnLayer(string layerName)
Parameters
layerNamestringThe layer name. / 圖層名稱。
Returns
- OdfDrawShapeBuilder
The current builder instance. / 目前 builder 執行個體。
Stroke(string)
Sets the stroke color. 設定線條色彩。
public OdfDrawShapeBuilder Stroke(string color)
Parameters
colorstringThe color value. / 色彩值。
Returns
- OdfDrawShapeBuilder
The current builder instance. / 目前 builder 執行個體。
WithId(string)
Sets the shape identifier. 設定圖形識別碼。
public OdfDrawShapeBuilder WithId(string id)
Parameters
idstringThe shape identifier. / 圖形識別碼。
Returns
- OdfDrawShapeBuilder
The current builder instance. / 目前 builder 執行個體。