Hide Comments
Hide Comments

Comments (0)

Defines the SVG unit type, which specifies the different units of measurement that can be specified for a SVG length

Namespace: FMX.RS.SVGTypes

expandingSyntax

Delphi

type 
  TSVGUnit = (suNone, suPixels, suPoints, suPicas, suMillimeters, 
  suCentimeters, suInches, suFontSize, suFontXHeight, suPercent); 
 

expandingMembers

 

Name

Description

public enummember

suCentimeters

Represents constant suCentimeters.

public enummember

suFontSize

Represents constant suFontSize.

public enummember

suFontXHeight

Represents constant suFontXHeight.

public enummember

suInches

Represents constant suInches.

public enummember

suMillimeters

Represents constant suMillimeters.

public enummember

suNone

Represents constant suNone.

public enummember

suPercent

Represents constant suPercent.

public enummember

suPicas

Represents constant suPicas.

public enummember

suPixels

Represents constant suPixels.

public enummember

suPoints

Represents constant suPoints.

Top

expandingRemarks

A length is a distance measurement, given as a number along with a unit which may be optional.

When a length is used in a style sheet or with a property in a ‘style’ attribute, the syntax must match the following pattern:
length ::= number (~"em" | ~"ex" | ~" px" | ~"in" | ~"cm" | ~"mm" | ~"pt" | ~"pc")?

When a length is used in an SVG presentation attribute, the syntax must match the following pattern:
length ::= number ("em" | "ex" | "px" | "in" | "cm" | "mm" | "pt" | "pc" | "%")?

Note that the non-property definition also allows a percentage unit identifier. The meaning of a percentage length value depends on the attribute for which the percentage length value has been specified. Two common cases are: (a) when a percentage length value represents a percentage of the viewport width or height, and (b) when a percentage length value represents a percentage of the bounding box width or height on a given object.

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb