Class StrokePosition
The possible positions of the stroke on a polygon.
Inheritance
Inherited Members
Namespace:GoogleMaps
Assembly:GoogleMaps.dll
Syntax
public sealed class StrokePosition
Fields
Center
The stroke is centered on the polygon's path, with half the stroke inside the polygon and half the stroke outside the polygon.
Declaration
public static readonly StrokePosition Center
Field Value
Type | Description |
---|---|
StrokePosition |
Inside
The stroke lies inside the polygon.
Declaration
public static readonly StrokePosition Inside
Field Value
Type | Description |
---|---|
StrokePosition |
Outside
The stroke lies outside the polygon.
Declaration
public static readonly StrokePosition Outside
Field Value
Type | Description |
---|---|
StrokePosition |
Properties
Name
The name of the StrokePosition instance.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
The value of the StrokePosition instance.
Declaration
public int Value { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Values
Returns enumerator over all StrokePosition available values.
Declaration
public static IEnumerable<StrokePosition> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<StrokePosition> |
Methods
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
The string representation of StrokePosition
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Operators
Equality(StrokePosition, StrokePosition)
Implements the operator == for StrokePosition.
Declaration
public static bool operator ==(StrokePosition left, StrokePosition right)
Parameters
Type | Name | Description |
---|---|---|
StrokePosition | left | The left operand of the operator |
StrokePosition | right | The right operand of the operator |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operation |
Implicit(StrokePosition to Int32)
Casts implicitly StrokePosition to a System.Int32 representation.
Declaration
public static implicit operator int (StrokePosition position)
Parameters
Type | Name | Description |
---|---|---|
StrokePosition | position |
Returns
Type | Description |
---|---|
System.Int32 |
Implicit(StrokePosition to String)
Casts implicitly StrokePosition to a System.String representation.
Declaration
public static implicit operator string (StrokePosition position)
Parameters
Type | Name | Description |
---|---|---|
StrokePosition | position | The StrokePosition to cast |
Returns
Type | Description |
---|---|
System.String |
Implicit(Int32 to StrokePosition)
Casts implicitly a System.Int32to its StrokePosition representation; if it has, otherwise GoogleMaps.StrokePosition.InvalidCastException(System.String,Format,GoogleMaps.Properties.Resources.StrokePositionNotFound,value) is thrown.
Declaration
public static implicit operator StrokePosition(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The int to cats to StrokePosition |
Returns
Type | Description |
---|---|
StrokePosition |
Implicit(String to StrokePosition)
Casts implicitly a System.String to its StrokePosition representation; if it has, otherwise GoogleMaps.StrokePosition.InvalidCastException(System.String,Format,GoogleMaps.Properties.Resources.StrokePositionNotFound,value) is thrown.
Declaration
public static implicit operator StrokePosition(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to cats to StrokePosition |
Returns
Type | Description |
---|---|
StrokePosition |
Inequality(StrokePosition, StrokePosition)
Implements the operator != for StrokePosition.
Declaration
public static bool operator !=(StrokePosition left, StrokePosition right)
Parameters
Type | Name | Description |
---|---|---|
StrokePosition | left | The left operand of the operator |
StrokePosition | right | The right operand of the operator |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operation |