RoundedRectangle Class

Represents a rounded corner rectangle with a gradient fill primitive graphics element.

Definition

Namespace: BeeMobile.TransparentControls.Primitives
Assembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
C#
public class RoundedRectangle : PrimitiveBase
Inheritance
Object    PrimitiveBase    RoundedRectangle

Constructors

RoundedRectangle Constructor of the RoundedRectangle primitive.

Properties

Anchor Gets or sets the anchor style of the primitive inside the container.
(Inherited from PrimitiveBase)
BorderColor Gets or sets the color of the border of the rectangle.
BorderWidth Gets or sets the width of the border of the rectangle.
Bounds The bounds of the primitive inside the container.
(Inherited from PrimitiveBase)
Children Descendant primitives. They are drawn in the area of parent. Their bounds and anchor style are relative to the parent.
(Inherited from PrimitiveBase)
Color The color by which the primitive should be drawn on the surface.
(Inherited from PrimitiveBase)
CornerRadius Gets or sets the radius of the corners of the rectangle.
GradientBackground Specifies the gradient background of the rounded rectangle.
GradientDirection Gets or sets the direction of the gradient fill. From top to bottom, or left to right.
Name The name of the primitive.
(Inherited from PrimitiveBase)

Methods

Draw Draws the primitive on a graphics surface.
(Inherited from PrimitiveBase)
DrawContent Draws the actual primitve.
(Overrides PrimitiveBaseDrawContent(Graphics, Rectangle))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnChanged Fires the Changed event.
(Inherited from PrimitiveBase)
ParentResized Should be called, when the parent container is resized.
(Inherited from PrimitiveBase)
ResetAnchor Resets the Anchor property to its default value.
(Inherited from PrimitiveBase)
ResetBorderColor Resets the BorderColor property to its default value.
ResetBorderWidth Resets the BorderWidth property to its default value.
ResetBounds Resets the Bounds property to its default value.
(Inherited from PrimitiveBase)
ResetColor Resets the Color property to its default value.
(Inherited from PrimitiveBase)
ResetCornerRadius Resets the CornerRadius property to its default value.
ResetGradientDirection Resets the GradientDirection property to its default value.
ScalePrimitive Scales the primitive by a given scale factor.
(Inherited from PrimitiveBase)
ShouldSerializeAnchor Indicates whether the Anchor property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeBorderColor Indicates whether the BorderColor property should be persisted.
ShouldSerializeBorderWidth Indicates whether the BorderWidth property should be persisted.
ShouldSerializeBounds Indicates whether the Bounds property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeColor Indicates whether the Color property should be persisted.
(Inherited from PrimitiveBase)
ShouldSerializeCornerRadius Indicates whether the CornerRadius property should be persisted.
ShouldSerializeGradientBackground Indicates whether the GradientBackground property should be persisted.
ShouldSerializeGradientDirection Indicates whether the GradientDirection property should be persisted.
ShouldSerializeName Indicates whether the Name property should be persisted.
(Inherited from PrimitiveBase)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Changed Occurs, when some property or a property of a children (every descendant primitive) has changed.
(Inherited from PrimitiveBase)

See Also