ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
Encapsulates a GeoBrush with a linear gradient.
This class encapsulates both two-color gradients and custom multicolor gradients.
All linear gradients are defined along a line specified either by the width of a rectangle or by two points.
By default, a two-color linear gradient is an even horizontal linear blend from the starting color to the ending color along the specified line.
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
GeoLinearGradientBrush | GeoColor, GeoColor, GeoLinearGradientDirection | Create an instance of GeoLinearGradientBrush by passing a gradient start color and gradient end color followed by the gradient direction enum. | |
GeoLinearGradientBrush | GeoColor, GeoColor, Single | Create an instance of GeoLinearGradientBrush by passing a gradient start color and gradient end color followed by the gradient direction angle. |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
GeoLinearGradientBrush | Create a new instance of the GeoLinearGradientBrush with default settings. |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
CloneDeepCore | GeoBrush | Create a copy of GeoBrush using the deep clone process. The default implementation uses serialization. | |
Finalize | Object | ||
MemberwiseClone | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
DirectionAngle | Single | Gets or sets the Direction angle of the GeoLinearGradientBrush. | |
EndColor | GeoColor | Gets or sets the ending GeoColor of the gradient. | |
Id | Int64 | GeoBrush | The id of the GeoBrush. This is always used as a key when in the cached brushes. |
StartColor | GeoColor | Gets or sets the starting GeoColor of the gradient. | |
WrapMode | GeoWrapMode | Gets or sets a GeoWrapMode enumeration that indicates the wrap mode for the GeoLinearGradientBrush. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
Create an instance of GeoLinearGradientBrush by passing a gradient start color and gradient end color followed by the gradient direction enum.
Name | Type | Description |
---|---|---|
startColor | GeoColor | This parameter specifies the starting GeoColor of the GeoLinearGradientBrush. |
endColor | GeoColor | This parameter specifies the endding GeoColor of the GeoLinearGradientBrush. |
direction | GeoLinearGradientDirection | This parameter specifies the GeoLinearGradientDirection enumeration of the GeoLinearGradientBrush. |
Create an instance of GeoLinearGradientBrush by passing a gradient start color and gradient end color followed by the gradient direction angle.
Name | Type | Description |
---|---|---|
startColor | GeoColor | This parameter specifies the starting GeoColor of the GeoLinearGradientBrush. |
endColor | GeoColor | This parameter specifies the endding GeoColor of the GeoLinearGradientBrush. |
directionAngle | Single | This parameter specifies the direction angle value of the GeoLinearGradientBrush. |
Create a new instance of the GeoLinearGradientBrush with default settings.
Name | Type | Description |
---|
Create a copy of GeoBrush using the deep clone process.
The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within.
Return Type | Description |
---|---|
GeoBrush | A cloned GeoBrush. |
Name | Type | Description |
---|
Return Type | Description |
---|---|
Boolean |
Name | Type | Description |
---|---|---|
obj | Object |
Return Type | Description |
---|---|
Int32 |
Name | Type | Description |
---|
Return Type | Description |
---|---|
Type |
Name | Type | Description |
---|
Return Type | Description |
---|---|
String |
Name | Type | Description |
---|
Create a copy of GeoBrush using the deep clone process. The default implementation uses serialization.
The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within.
Return Type | Description |
---|---|
GeoBrush | A cloned GeoBrush. |
Name | Type | Description |
---|
Return Type | Description |
---|---|
Void |
Name | Type | Description |
---|
Return Type | Description |
---|---|
Object |
Name | Type | Description |
---|
Gets or sets the Direction angle of the GeoLinearGradientBrush.
Return Type |
---|
Single |
Gets or sets the ending GeoColor of the gradient.
The id of the GeoBrush. This is always used as a key when in the cached brushes.
Return Type |
---|
Int64 |
Gets or sets the starting GeoColor of the gradient.
Gets or sets a GeoWrapMode enumeration that indicates the wrap mode for the GeoLinearGradientBrush.
Return Type |
---|
GeoWrapMode |