FMX.DateTimeCtrls.TCustomDateTimeEdit

From Appmethod Libraries
Jump to: navigation, search

FMX.Controls.TTextControlFMX.Controls.TStyledControlFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCustomDateTimeEdit

Object Pascal

TCustomDateTimeEdit = class(TTextControl, IVirtualKeyboardControl)

C++

class PASCALIMPLEMENTATION TCustomDateTimeEdit : public Fmx::Controls::TTextControl

Properties

Type Visibility Source Unit Parent
class public
FMX.DateTimeCtrls.pas
FMX.DateTimeCtrls.hpp
FMX.DateTimeCtrls FMX.DateTimeCtrls

Description

Base class for all text controls such as TDateEdit.

FMX.DateTimeCtrls.TCustomDateTimeEdit inherits from FMX.Controls.TTextControl. All content below this line refers to FMX.Controls.TTextControl.

Base class for all text controls such as TDateEdit.

TTextControl is the base class for all graphical controls that display text, such as TTimeEdit, TListBoxItem, TTabItem, and so on.

TTextControl encapsulates standard functionality to manipulate the displayed text, offering the possibility of changing the font, the alignment of the text, or enabling word wrapping.

If you need to create a new control from scratch that displays text (for instance, an enhanced label graphical control or a custom redesigned check box control), then you should derive your component from TTextControl.

TTextControl implements the ITextSettings interface. This interface provides methods and properties to manage the most common text representation properties of general text objects independently of the particular types of these objects. TTextControl and its descendants contain the public property TextSettings of the TTextSettings type. Using the methods and the properties declared in the ITextSettings interface, you can manage the text representation TFont.Family, TFont.Size, TFont.Style, FontColor, HorzAlign, VertAlign, Trimming, and WordWrap properties defining visual parameters of the text representation. For more information see Setting Text Parameters in FireMonkey.

TTextControl uses the TTextSettingsInfo service class to manage sets of styled text representation properties stored in the DefaultTextSettings, TextSettings, StyledSettings, and ResultingTextSettings properties.

See Also