Android Guides | Samples

Android.Graphics.Drawables.Shapes.RectShape Class

Defines a rectangle shape.

See Also: RectShape

Syntax

[Android.Runtime.Register("android/graphics/drawable/shapes/RectShape", DoNotGenerateAcw=true)]
public class RectShape : Shape

Remarks

Defines a rectangle shape. The rectangle can be drawn to a Canvas with its own draw() method, but more graphical control is available if you instead pass the RectShape to a ShapeDrawable.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables.Shapes
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.Drawables.Shapes.RectShape are listed below.

See Also: Shape

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
Draw(Canvas, Paint)
Draw this shape into the provided Canvas, with the provided Paint.

Protected Methods

Rect() : RectF
Returns the RectF that defines this rectangle's bounds.