User Tools

Site Tools


thinkgeo.mapsuite.portablecore.geohatchbrush

This is an old revision of the document!


ThinkGeo.MapSuite.PortableCore.GeoHatchBrush

<!– Class –> This class represents a brush that fills with various patterns.

Remarks

This class represents a brush that fills with various patterns.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodGeoHatchBrush GeoHatchStyle, GeoColor This is the constructor for the class.
Public MethodGeoHatchBrush GeoHatchStyle, GeoColor, GeoColor This is the constructor for the class.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodCloneDeep GeoBrush Create a copy of GeoBrush using the deep clone process.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodCloneDeepCore GeoBrush Create a copy of GeoBrush using the deep clone process. The default implementation uses serialization.
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyBackgroundColor GeoColor This property gets and sets the background color for the fill pattern.
Public PropertyForegroundColor GeoColor This property gets and sets the foreground color for the fill pattern.
Public PropertyHatchStyle GeoHatchStyle This property gets and sets the pattern you want to use for the fill.
Public PropertyId Int64 GeoBrush The id of the GeoBrush. This is always used as a key when in the cached brushes.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

GeoHatchBrush(GeoHatchStyle, GeoColor)

This is the constructor for the class.

Overloads

This constructor allows you to provide a foreground color for the pattern fill.

Remarks

You will use this constructor when you want to only specify the foreground color of the pattern and leave the background transparent.

Parameters

Name Type Description
hatchStyle GeoHatchStyle<!– ThinkGeo.MapSuite.PortableCore.GeoHatchStyle –> This property is the hatch pattern you want to use to fill the area.
foregroundColor GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> This property is the foreground color you want to use for the pattern.

Go Back

GeoHatchBrush(GeoHatchStyle, GeoColor, GeoColor)

This is the constructor for the class.

Overloads

This constructor allows you to provide a foreground and background color for the pattern fill.

Remarks

This constructor allows you to choose both the background and foreground color for the pattern.

Parameters

Name Type Description
hatchStyle GeoHatchStyle<!– ThinkGeo.MapSuite.PortableCore.GeoHatchStyle –> This property is the hatch pattern you want to use to fill the area.
foregroundColor GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> This property is the foreground color you want to use for the pattern.
backgroundColor GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> This property is the background color you want to use for the pattern.

Go Back

Protected Constructors

Public Methods

CloneDeep()

Create a copy of GeoBrush using the deep clone process.

Remarks

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 Value

Return Type Description
GeoBrush<!– ThinkGeo.MapSuite.PortableCore.GeoBrush –> A cloned GeoBrush.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.PortableCore.GeoBrush –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

CloneDeepCore()

Create a copy of GeoBrush using the deep clone process. The default implementation uses serialization.

Remarks

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 Value

Return Type Description
GeoBrush<!– ThinkGeo.MapSuite.PortableCore.GeoBrush –> A cloned GeoBrush.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.PortableCore.GeoBrush –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

BackgroundColor

This property gets and sets the background color for the fill pattern.

Remarks

In this case the foreground color will be transparent.

Return Value

Return Type
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –>

<!– ThinkGeo.MapSuite.PortableCore.GeoHatchBrush –> Go Back

ForegroundColor

This property gets and sets the foreground color for the fill pattern.

Remarks

In this case the background color will be transparent.

Return Value

Return Type
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –>

<!– ThinkGeo.MapSuite.PortableCore.GeoHatchBrush –> Go Back

HatchStyle

This property gets and sets the pattern you want to use for the fill.

Return Value

Return Type
GeoHatchStyle<!– ThinkGeo.MapSuite.PortableCore.GeoHatchStyle –>

<!– ThinkGeo.MapSuite.PortableCore.GeoHatchBrush –> Go Back

Id

The id of the GeoBrush. This is always used as a key when in the cached brushes.

Return Value

Return Type
Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.PortableCore.GeoBrush –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.portablecore.geohatchbrush.1440040132.txt.gz · Last modified: 2015/09/21 08:08 (external edit)