C# Class SharpVectors.Dom.Svg.SvgLength

Inheritance: ISvgLength
ファイルを表示 Open project: codebutler/savagesvg Class Usage Examples

Public Methods

Method Description
ConvertToSpecifiedUnits ( SvgLengthType unitType ) : void

Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueAsSpecified and valueAsString might be modified as a result of this method. For example, if the original value were "0.5cm" and the method was invoked to convert to millimeters, then the unitType would be changed to MM, valueAsSpecified would be changed to the numeric value 5 and valueAsString would be changed to "5mm".

NewValueSpecifiedUnits ( SvgLengthType unitType, double valueInSpecifiedUnits ) : void

Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.

SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthDirection direction, string baseVal ) : System
SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthDirection direction, string baseVal, string defaultValue ) : System
SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthSource source, SvgLengthDirection direction, string defaultValue ) : System

Private Methods

Method Description
getCssXmlValue ( ) : void

Method Details

ConvertToSpecifiedUnits() public method

Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueAsSpecified and valueAsString might be modified as a result of this method. For example, if the original value were "0.5cm" and the method was invoked to convert to millimeters, then the unitType would be changed to MM, valueAsSpecified would be changed to the numeric value 5 and valueAsString would be changed to "5mm".
public ConvertToSpecifiedUnits ( SvgLengthType unitType ) : void
unitType SvgLengthType The unitType to switch to (e.g., MM).
return void

NewValueSpecifiedUnits() public method

Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
public NewValueSpecifiedUnits ( SvgLengthType unitType, double valueInSpecifiedUnits ) : void
unitType SvgLengthType The unitType for the value (e.g., MM).
valueInSpecifiedUnits double The new value
return void

SvgLength() public method

public SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthDirection direction, string baseVal ) : System
ownerElement SvgElement
propertyName string
direction SvgLengthDirection
baseVal string
return System

SvgLength() public method

public SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthDirection direction, string baseVal, string defaultValue ) : System
ownerElement SvgElement
propertyName string
direction SvgLengthDirection
baseVal string
defaultValue string
return System

SvgLength() public method

public SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthSource source, SvgLengthDirection direction, string defaultValue ) : System
ownerElement SvgElement
propertyName string
source SvgLengthSource
direction SvgLengthDirection
defaultValue string
return System