Provides a class that draws a simple border.
- Implements:
- ICloneable
Constructors
SimpleBorder()
Initializes a new instance of the SimpleBorder
class.
Remarks
The default constructor initializes all fields to their default values.
SimpleBorder(SimpleBorder)
Initializes a new instance of the SimpleBorder
class.
Parameter | Type | Description |
---|---|---|
copyFrom | Simple |
An instance of |
Remarks
This constructor used in support of Clone() for base classes to initialize their fields.
SimpleBorder(SimpleBorderStyle, Color)
Initializes a new instance of the SimpleBorder
class.
Parameter | Type | Description |
---|---|---|
style | Simple |
The Simple |
color | Color | The base Color of the border. |
Properties
Color
Gets or sets the base color of the border.
ColorAlpha
Gets or sets the color alpha value.
Property Value
- byte:
The color alpha value.
Style
Gets or sets the style of the border.
Property Value
- Simple
Border :Style A Simple
Border object specifying the border style.Style
Methods
Clone()
Creates an exact duplicate of the Border object.
Draw(Graphics, Rectangle, Sides)
Draws the border.
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
bounds | Rectangle | The bounds of the area to paint. |
sides | Sides | The Sides of the border to draw. |
Draw(Graphics, Rectangle, SimpleBorderStyle, Color)
Draws a border.
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
bounds | Rectangle | The bounds of the border. |
borderStyle | Simple |
The Simple |
borderColor | Color | The base Color of the border. |
Draw(Graphics, Rectangle, SimpleBorderStyle, Color, Sides)
Draws a border.
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
bounds | Rectangle | The bounds of the border. |
borderStyle | Simple |
The Simple |
borderColor | Color | The base Color of the border. |
sides | Sides | The Sides of the border to draw. |
Equals(object)
Determines whether the specified Object
is equal to the current Object
.
Parameter | Type | Description |
---|---|---|
obj | object | The |
Returns
- bool:
true
if the specifiedObject
is equal to the currentObject
; otherwise,false
.
GetBorderWidth()
Returns the width of the border.
Returns
- int:
The width of the border.
GetBorderWidth(SimpleBorderStyle)
Returns the width of the border for the specified Simple
Parameter | Type | Description |
---|---|---|
borderStyle | Simple |
A Simple |
Returns
- int:
The width of the border for the specified Simple
Border .Style
GetHashCode()
Returns a hash code for this object.
Returns
- int:
An integer value that specifies a hash value for this object.
GetPrimaryColor()
Returns the primary Color
of the border.
Returns
- Color:
The primary
Color
of the border.
ResetColor()
Resets the Color property to its default value.
ResetStyle()
Resets the Style property to its default value.
ShouldSerializeColor()
Indicates whether the Color property should be persisted.
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeStyle()
Indicates whether the Style property should be persisted.
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
Inherited Members
-
Border.
Draw(Graphics, Rectangle) -
Border.
Get Inner Bounds(Graphics, Rectangle) -
Border.
Get Inner Bounds(Graphics, Rectangle, Sides) -
Border.
On Property Changed(Event Args) -
Border.
Property Changed -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object, object) -
object.
Reference Equals(object, object)