User Tools

Site Tools


thinkgeo.mapsuite.portablecore.geopen

ThinkGeo.MapSuite.Core.GeoPen

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class represents a GeoPen, which is used to draw lines on a GeoCanvas.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.GeoPen

Members Summary

Public Constructors

GeoPen()

  • This constructor creates a GeoPen.
Remarks
  • N/A
Parameters

GeoPen(GeoBrush)

  • This constructor creates a GeoPen.
Remarks
  • None
Parameters
  • brush
    • Type:GeoBrush
    • Description:This parameter represents the brush that will be used to draw the line.

GeoPen(GeoColor)

  • This constructor creates a GeoPen.
Remarks
  • None
Parameters
  • color
    • Type:GeoColor
    • Description:This parameter represents the color that will be used to draw the line.

GeoPen(GeoColor,Single)

  • This constructor creates a GeoPen.
Remarks
  • None
Parameters
  • color
    • Type:GeoColor
    • Description:This parameter represents the color that will be used to draw the line.
  • width
    • Type:Single
    • Description:This parameter represents the width of the line.

GeoPen(GeoBrush,Single)

  • This constructor creates a GeoPen.
Remarks
  • None
Parameters
  • brush
    • Type:GeoBrush
    • Description:This parameter represents the brush that will be used to draw the line.
  • width
    • Type:Single
    • Description:This parameter represents the width of the line.

Protected Constructors

Public Methods

SetLineCap(DrawingLineCap,DrawingLineCap,GeoDashCap)

  • This method allows you to set the start, end and dash caps at one time.
Remarks
  • None
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • startCap
    • Description:This parameter specifies the start cap to be used.
  • endCap
    • Description:This parameter specifies the end cap to be used.
  • dashCap
    • Description:This parameter specifies the dash cap to be used.

CloneDeep()

  • Create a copy of GeoPen 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
  • Type:GeoPen
  • Description:A cloned GeoPen.
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

CloneDeepCore()

  • Create a copy of GeoPen 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
  • Type:GeoPen
  • Description:A cloned GeoPen.
Parameters

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

Brush

  • This property gets and sets the brush for this GeoPen.
Remarks
  • None
Return Value

Color

  • This property gets and sets the GeoColor for this GeoPen.
Remarks
  • N/A
Return Value

DashCap

  • This property gets and sets the dash cap for this GeoPen.
Remarks
  • None
Return Value

DashPattern

  • This property gets the dash pattern for this GeoPen.
Remarks
  • Assigning a value other than null (Nothing in Visual Basic) to this property will set the DashStyle property for this GeoPen to Custom. The elements in the dashArray array set the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on. The length of each dash and space in the dash pattern is the product of the element value in the array and the width of the GeoPen.
Return Value
  • Type:Collection<Single>

DashStyle

  • This property gets and sets the dash style for this GeoPen.
Remarks
  • None
Return Value

EndCap

  • This property gets and sets the end cap for this GeoPen.
Remarks
  • None
Return Value

LineJoin

  • This property gets and sets the line join for this GeoPen.
Remarks
  • None
Return Value

MiterLimit

  • This property gets and sets the miter limit for this GeoPen.
Remarks
  • None
Return Value
  • Type:Single

StartCap

  • This property gets and sets the start cap for this GeoPen.
Remarks
  • None
Return Value

Width

  • This property gets and sets the width for this GeoPen.
Remarks
  • None
Return Value
  • Type:Single

Id

  • The id of the GeoBrush. This is always used as a key when in the cached brushes.
Remarks
  • N/A
Return Value
  • Type:Int64

Protected Properties

Public Events

thinkgeo.mapsuite.portablecore.geopen.txt · Last modified: 2017/03/16 21:59 (external edit)