MKPolygonView MKPolygonView Class

Definition

The visual representation of an MKPolygon annotation. Developers targeting iOS 7 and later should instead use MKPolygonRenderer.

[Foundation.Register("MKPolygonView", true)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'MKPolygonRenderer' instead.")]
public class MKPolygonView : MapKit.MKOverlayPathView
type MKPolygonView = class
    inherit MKOverlayPathView
Inheritance
Attributes

Remarks

Developers targeting iOS 7 and later should instead use MKPolygonRenderer.

Constructors

MKPolygonView() MKPolygonView()

Default constructor that initializes a new instance of this class with no parameters.

MKPolygonView(CGRect) MKPolygonView(CGRect)

Initializes the MKPolygonView with the specified frame.

MKPolygonView(IntPtr) MKPolygonView(IntPtr)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

MKPolygonView(MKPolygon) MKPolygonView(MKPolygon)
MKPolygonView(NSCoder) MKPolygonView(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

MKPolygonView(NSObjectFlag) MKPolygonView(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

Properties

Appearance Appearance

Strongly-typed property that returns the UIAppearance class for this class.

ClassHandle ClassHandle

The handle for this class.

FillColor FillColor Inherited from MKOverlayPathView
Linecap Linecap Inherited from MKOverlayPathView
LineDashPattern LineDashPattern Inherited from MKOverlayPathView
LineDashPhase LineDashPhase Inherited from MKOverlayPathView
LineJoin LineJoin Inherited from MKOverlayPathView
LineWidth LineWidth Inherited from MKOverlayPathView
MiterLimit MiterLimit Inherited from MKOverlayPathView
Overlay Overlay

The MKOverlay associated with this MKOverlayView.

(Inherited from MKOverlayView)
Path Path Inherited from MKOverlayPathView
Polygon Polygon
StrokeColor StrokeColor Inherited from MKOverlayPathView

Methods

AppearanceWhenContainedIn(Type[]) AppearanceWhenContainedIn(Type[])

Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

ApplyFillProperties(CGContext, nfloat) ApplyFillProperties(CGContext, nfloat) Inherited from MKOverlayPathView
ApplyStrokeProperties(CGContext, nfloat) ApplyStrokeProperties(CGContext, nfloat) Inherited from MKOverlayPathView
CanDrawMapRect(MKMapRect, nfloat) CanDrawMapRect(MKMapRect, nfloat)

Returns true if the MKOverlayView has the data it needs to draw properly.

(Inherited from MKOverlayView)
CreatePath() CreatePath() Inherited from MKOverlayPathView
DrawMapRect(MKMapRect, nfloat, CGContext) DrawMapRect(MKMapRect, nfloat, CGContext) Inherited from MKOverlayView
FillPath(CGPath, CGContext) FillPath(CGPath, CGContext) Inherited from MKOverlayPathView
GetAppearance(UITraitCollection) GetAppearance(UITraitCollection)
GetAppearance(UITraitCollection, Type[]) GetAppearance(UITraitCollection, Type[])
GetAppearance<T>() GetAppearance<T>()

Obtains the appearance proxy MKPolygonView.MKPolygonViewAppearance for the subclass of MKPolygonView.

GetAppearance<T>(UITraitCollection) GetAppearance<T>(UITraitCollection)

Obtains the appearance proxy MKPolygonView.MKPolygonViewAppearance for the subclass of MKPolygonView.

GetAppearance<T>(UITraitCollection, Type[]) GetAppearance<T>(UITraitCollection, Type[])

Obtains the appearance proxy MKPolygonView.MKPolygonViewAppearance for the subclass of MKPolygonView that has the specified trait collection when the view is hosted in the specified hierarchy.

InvalidatePath() InvalidatePath() Inherited from MKOverlayPathView
MapPointForPoint(CGPoint) MapPointForPoint(CGPoint)

The MKMapPoint corresponding to the specified point.

(Inherited from MKOverlayView)
MapRectForRect(CGRect) MapRectForRect(CGRect)

The MKMapRect corresponding to the specified rect.

(Inherited from MKOverlayView)
PointForMapPoint(MKMapPoint) PointForMapPoint(MKMapPoint)

Returns a PointF corresponding to the mapPoint.

(Inherited from MKOverlayView)
RectForMapRect(MKMapRect) RectForMapRect(MKMapRect)

Returns a RectangleF in the MKOverlayView's coordinate system corresponding to the mapRect.

(Inherited from MKOverlayView)
SetNeedsDisplay(MKMapRect) SetNeedsDisplay(MKMapRect)

Invalidates the view in the specified mapRect in all zoom scales.

(Inherited from MKOverlayView)
SetNeedsDisplay(MKMapRect, nfloat) SetNeedsDisplay(MKMapRect, nfloat)

Invalidates the view in the specified mapRect at the specified zoomScale.

(Inherited from MKOverlayView)
StrokePath(CGPath, CGContext) StrokePath(CGPath, CGContext) Inherited from MKOverlayPathView

Applies to

See also