Defines a view box (or rectangle) composed of four lengths: X, Y, Width, and Height. Each value may be specified in pixels or in a unit measurement (e.g., inches, millimeters, etc).
Namespace: FMX.RS.SVGTypes
TPersistent
FMX.RS.SVGTypes.TSVGViewBox
|
Delphi
|
type
TSVGViewBox = class(TPersistent)
end;
|
|
Name
|
Description
|
|
Create
|
Overloaded. Constructs the view box
|
|
Create(Single,Single,Single,Single)
|
Overloaded. Constructs the view box and initializes its coordinates to the aLeft, aTop, aRight, and aBottom parameters, which are specified in pixels
|
|
Create(TSVGRect)
|
Overloaded. Constructs the view box and initializes its coordinates to the rectangle parameters, which is specified in pixels
|
|
Destroy
|
Represents the destructor of the TSVGViewBox class.
|
Top
|
|
Name
|
Description
|
|
Bottom
|
Returns the X + Width coordinate in pixels
|
|
Height
|
Specifies the Height as a length with a raw value and a unit.
|
|
Left
|
Returns the X coordinate in pixels
|
|
OnChange
|
Occurs when the view box changes
Write a OnChange event handler to respond to viewbox changes
BeginUpdate and EndUpdate methods control when the OnChange event is triggered.
|
|
Rect
|
Returns the view box as a rectangle in pixels
|
|
Right
|
Returns the Y + Height coordinate in pixels
|
|
Specified
|
Indicates whether the ViewBox property has been specified (and not just default) and should be applied to descendant elements.
|
|
Top
|
Returns the Y coordinate in pixels
|
|
UpdateCount
|
Represents property UpdateCount.
|
|
Width
|
Specifies the Width as a length with a raw value and a unit.
|
|
X
|
Specifies the X coordinate as a length with a raw value and a unit.
|
|
Y
|
Specifies the Y coordinate as a length with a raw value and a unit.
|
Top
|
|
Name
|
Description
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
BeginUpdate
|
BeginUpdate suspends change events. Call EndUpdate to resume change events. The number of BeginUpdate and EndUpdate method calls may be nested. Only when the number of calls match do change events resume.
|
|
Change
|
Represents method Change.
|
|
Changed(TObject)
|
Represents method Changed(TObject).
|
|
Clear
|
Empties the view box, i.e., X, Y, Width, and Height all equal 0
|
|
EndUpdate
|
BeginUpdate suspends change events. Call EndUpdate to resume change events. The number of BeginUpdate and EndUpdate method calls may be nested. Only when the number of calls match do change events resume.
|
|
GetUnitFactors
|
Returns the unit factors array for converting raw values into pixels. This method calls the FMX.RS.SVGTypes.TSVGViewBox.OnUnitFactors event if assigned or returns the FMX.RS.SVGTypes.SVGUnitFactors constant if it is not.
|
|
ToString(String,Single,Single)
|
Overloaded. Returns a string representation of the view box. If the value lengths are percentage, the method uses the Min and Max values to convert the Raw value into its final value
|
Top
|