FMX.Graphics.TGradient.StartPosition

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property StartPosition: TPosition read FStartPosition write SetStartPosition stored IsLinearStored;

C++

__property Fmx::Types::TPosition* StartPosition = {read=FStartPosition, write=SetStartPosition, stored=IsLinearStored};

Properties

Type Visibility Source Unit Parent
property published
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TGradient

Description

Specifies the starting point of the gradient.

Use the StartPosition property to specify the starting point of the gradient. StartPosition is in unit coordinates, from (0,0) in the top-left to (1,1) in the bottom-right of the rectangle being painted. Changing the rotation of a linear gradient in the Brush Designer modifies these coordinates so that the gradient goes in the desired direction.

Note: The changes made to StartPosition are visible only when the Style property is set to Linear.

See Also


Code Examples