Class DiagramShapeStyleBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
DiagramShapeStyleBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.Diagrams
Assembly: Syncfusion.AspNetMvc.Diagram.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
| Type |
|---|
| DiagramShapeStyleBuilder |
Gradient(Action<DiagramGradientBuilder>)
Declaration
public DiagramShapeStyleBuilder Gradient(Action<DiagramGradientBuilder> gradient)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<DiagramGradientBuilder> | gradient |
Returns
| Type |
|---|
| DiagramShapeStyleBuilder |
Gradient(Object)
Defines the gradient of a shape/path
Declaration
public DiagramShapeStyleBuilder Gradient(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value |
Returns
| Type |
|---|
| DiagramShapeStyleBuilder |
Opacity(Double)
Sets the opacity of a shape/path
Declaration
public DiagramShapeStyleBuilder Opacity(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value |
Returns
| Type |
|---|
| DiagramShapeStyleBuilder |
StrokeColor(String)
Sets the stroke color of a shape/path
Declaration
public DiagramShapeStyleBuilder StrokeColor(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| DiagramShapeStyleBuilder |
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
| Type |
|---|
| DiagramShapeStyleBuilder |
StrokeWidth(Double)
Defines the stroke width of the path/shape
Declaration
public DiagramShapeStyleBuilder StrokeWidth(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value |
Returns
| Type |
|---|
| DiagramShapeStyleBuilder |