Class DiagramShapeStyleBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
DiagramShapeStyleBuilder
Namespace: Syncfusion.EJ2.Diagrams
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramShapeStyleBuilder : ControlBuilder
Constructors
DiagramShapeStyleBuilder()
Declaration
public DiagramShapeStyleBuilder()
DiagramShapeStyleBuilder(DiagramShapeStyle)
Declaration
public DiagramShapeStyleBuilder(DiagramShapeStyle model)
Parameters
Type | Name | Description |
---|---|---|
DiagramShapeStyle | model |
Methods
Fill(String)
Sets the fill color of a shape/path
Declaration
public DiagramShapeStyleBuilder Fill(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Gradient(Action<DiagramGradientBuilder>)
Declaration
public DiagramShapeStyleBuilder Gradient(Action<DiagramGradientBuilder> gradient)
Parameters
Type | Name | Description |
---|---|---|
System.Action<DiagramGradientBuilder> | gradient |
Returns
Gradient(Object)
Defines the gradient of a shape/path
Declaration
public DiagramShapeStyleBuilder Gradient(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Opacity(Double)
Sets the opacity of a shape/path
Declaration
public DiagramShapeStyleBuilder Opacity(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
Returns
StrokeColor(String)
Sets the stroke color of a shape/path
Declaration
public DiagramShapeStyleBuilder StrokeColor(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
StrokeDashArray(String)
Defines the pattern of dashes and spaces to stroke the path/shape
Declaration
public DiagramShapeStyleBuilder StrokeDashArray(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
StrokeWidth(Double)
Defines the stroke width of the path/shape
Declaration
public DiagramShapeStyleBuilder StrokeWidth(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |