Class Style
Represents the style instance of the diagram elements.
Inheritance
System.Object
Style
Implements
System.ComponentModel.INotifyPropertyChanged
Namespace: Syncfusion.SfDiagram.Android
Assembly: Syncfusion.SfDiagram.Android.dll
Syntax
public class Style : Object, INotifyPropertyChanged
Constructors
Style()
Initializes a new instance of the Style class.
Declaration
public Style()
Style(Color, Color, Single)
Initializes a new instance of the Style class.
Declaration
public Style(Color fillColor, Color strokeColor, float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Color | fillColor | The color that is used to fill. |
Android.Graphics.Color | strokeColor | The color that is used to stroke. |
System.Single | strokeWidth | The width of the stroke. |
Properties
Brush
Gets or sets the brush for this style instance.
Declaration
public Brush Brush { get; set; }
Property Value
Type |
---|
Brush |
StrokeBrush
Gets or sets the stroke brush for this style instance.
Declaration
public Brush StrokeBrush { get; set; }
Property Value
Type |
---|
Brush |
StrokeStyle
Gets or sets the stroke style.
Declaration
public StrokeStyle StrokeStyle { get; set; }
Property Value
Type | Description |
---|---|
StrokeStyle | The stroke style. |
StrokeWidth
Gets or sets the width of the stroke.
Declaration
public float StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width of the stroke. |
Methods
OnPropertyChanged(String)
property changed.
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | name value. |
Events
PropertyChanged
property changed event
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged