FMX.Objects.TRectangle.CornerType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CornerType: TCornerType read FCornerType write SetCornerType  default TCornerType.ctRound;

C++

__property Fmx::Types::TCornerType CornerType = {read=FCornerType, write=SetCornerType, default=0};

Properties

Type Visibility Source Unit Parent
property published
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TRectangle

Description

Specifies the type of the corners of a rectangle.

Values of CornerType are defined in the TCornerType, as constants: ctRound, ctBevel, ctInnerRound, and ctInnerLine. These constants can define the following types of corners:

DrawRectCanvas.png

Use SetCornerType to define CornerType.

CornerType applies to corners specified in the Corners set.

XRadius and YRadius specify the distance from a corner to the start point of the customization, on the horizontal and vertical sides.

Note: If Corners is an empty set or any of the XRadius or YRadius properties is zero, modifying the CornerType property has no visual effect.

See Also

Personal tools
Translations