Show / Hide Table of Contents

Class StrokePosition

The possible positions of the stroke on a polygon.

Inheritance
System.Object
StrokePosition
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
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

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)

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
System.Object.GetHashCode()

ToString()

The string representation of StrokePosition

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

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

Back to top Copyright © 2017 GoogleMapControl
Generated by DocFX