Class Pen
Represents a class that maintains the common functionalities of Pen.
Inheritance
Namespace: Syncfusion.UI.Xaml.Grids.Utility
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class Pen : Object
Constructors
Pen()
Initializes a new instance of Pen class.
Declaration
public Pen()
Pen(Brush, Double)
Initializes a new instance of the Pen class with the specified Brush and thickness.
Declaration
public Pen(Brush brush, double thickness)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Media.Brush | brush | The Brush for the Pen. |
System.Double | thickness | The thickness of the Pen. |
Pen(Brush, Double, BorderStyle)
Initializes a new instance of Pen class with specified Brush,BorderStyle and thickness.
Declaration
public Pen(Brush brush, double thickness, BorderStyle style)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Media.Brush | brush | The corresponding Brush for the Pen. |
System.Double | thickness | The thickness of the Pen. |
BorderStyle | style | The BorderStyle. |
Pen(Brush, Double, BorderStyle, DoubleCollection)
Initializes a new instance of Pen class with specified Brush,BorderStyle,Dash array and thickness.
Declaration
public Pen(Brush brush, double thickness, BorderStyle style, DoubleCollection dashArray)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Media.Brush | brush | The corresponding Brush for the Pen. |
System.Double | thickness | The thickness of the Pen. |
BorderStyle | style | The BorderStyle. |
Microsoft.UI.Xaml.Media.DoubleCollection | dashArray | The dash array. |
Properties
Brush
Gets or sets the brush.
Declaration
public Brush Brush { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Media.Brush |
DashArray
Gets or sets the Dash array.
Declaration
public DoubleCollection DashArray { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.Media.DoubleCollection |
Style
Gets or sets the style for border.
Declaration
public BorderStyle Style { get; set; }
Property Value
Type |
---|
BorderStyle |
Thickness
Gets or sets the thickness.
Declaration
public double Thickness { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The specified object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the spepcified object and current object are equal; otherwise false. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |