GraffitiRectangle

Enumerations #

NameValues
AttachmentValuesDefault
Fixed
Local
Scroll
BlendModesDefault
Multiply
Screen
Overlay
Darken
Lighten
Dodge
Saturation
Color
Luminosity
BoundaryValuesDefault
PaddingBox
BorderBox
ContentBox
PositionValuesDefault
LeftTop
LeftCenter
LeftBottom
RightTop
RightCenter
RightBottom
CenterTop
Center
CenterBottom
Raw
RepeatValuesDefault
Repeat
RepeatX
RepeatY
NoRepeat
SizeValuesDefault
Cover
Contain
Raw

Constants #

This class exposes no constants.

Events #

DefinitionParametersDescription
MouseEnterNoneRaised when the user’s mouse enters the display area.
MouseExitNoneRaised when the user’s mouse exits the display area.
PressedNoneRaised when the user left-clicks or touches the control.
PressedRightNoneRaised when the user right-clicks or long-presses the control.

Methods #

DefinitionParametersReturn TypeDescription
SetBackgroundImagep as PictureNoneSets the background image of the rectangle to the specified Picture object.
SetBackgroundImagep as WebFileNoneSets the background image of the rectangle to the specified WebFile object.
SetBackgroundImagep as WebPictureNoneSets the background image of the rectangle to the specified WebPicture object.

Properties #

NameTypeDefault ValueDescription
BorderBottomBooleanTrueDetermines whether the rectangle has a bottom border.
BorderBottomLeftRadiusInteger0Radius of the bottom left corner.
BorderBottomRightRadiusInteger0Radius of the bottom right corner.
BorderBottomRoundedBooleanTrueIf True, corners at the bottom will be rounded. Also relies on each side having their Rounded property set to True.
BorderBottomSizeInteger1Size of the border along the bottom side.
BorderLeftBooleanTrueDetermines whether the rectangle has a left border.
BorderLeftRoundedBooleanTrueIf True, corners on the left will be rounded. Also relies on top and/or bottom having their Rounded property set to True.
BorderLeftSizeInteger1Size of the border along the left side.
BorderRightBooleanTrueDetermines whether the rectangle has a right border.
BorderRightRoundedBooleanTrueIf True, corners on the right will be rounded. Also relies on top and/or bottom having their Rounded property set to True.
BorderRightSizeInteger1Size of the border along the right side.
BorderTopBooleanTrueDetermines whether the rectangle has a top border.
BorderTopLeftRadiusInteger0Radius of the top left corner.
BorderTopRightRadiusInteger0Radius of the top right corner.
BorderTopRoundedBooleanTrueIf True, corners at the top will be rounded. Also relies on each side having their Rounded property set to True.
BorderTopSizeInteger1Size of the border along the top side.
BorderBooleanTrueIf True, corners at the top will be rounded. Also relies on each side having their Rounded property set to True.
ColorBackgroundColor&c000000Custom background color.
ColorBorderColor&c000000Custom border color.
CustomBackgroundBooleanFalseWhen True, ColorBackground is applied to the rectangle.
CustomBorderBooleanFalseWhen True, ColorBorder is applied to the rectangle.
ImageAttachmentAttachmentValuesDefaultSets whether a background image scrolls with the rest of the page, or is fixed.
ImageBackgroundURLString“”URL to an image to set as the background. The SetBackgroundImage methods populate this property.
ImageBlendModeBlendModesDefaultSets how the background image should blend with each other and with the element’s background color.
ImageClipBoundaryValuesDefaultSets whether an element’s background extends underneath its border box, padding box, or content box.
ImageOriginBoundaryValuesDefaultSets the background’s origin: from the border start, inside the border, or inside the padding.
ImagePositionPositionValuesDefaultSets the initial position for each background image. The position is relative to the position layer set by ImageOrigin.
ImagePositionRawString“”Custom position value. See here for more information.
ImageRepeatRepeatValuesDefaultSets whether the image will repeat along X, Y, both, or none axes.
ImageSizeSizeValuesDefaultSets the size of the element’s background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
ImageSizeRawString“”Custom size values. See here for more information.
IndicatorBackgroundWebUIControl.IndicatorsDefaultBootstrap indicator to apply to the rectangle’s background. It is not recommended that you mix IndicatorBackground with ColorBackground.
IndicatorBorderWebUIControl.IndicatorsDefaultBootstrap indicator to apply to the rectangle’s border. It is not recommended that you mix IndicatorBorder with ColorBorder.
IsOvalBooleanFalseWhen set to True the control will draw as an oval and override the Border*Rounded properties.

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.