C# Класс SharpVectors.Dom.Svg.SvgLength

Наследование: ISvgLength
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
getCssXmlValue ( ) : void

Описание методов

ConvertToSpecifiedUnits() публичный Метод

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).
Результат void

NewValueSpecifiedUnits() публичный Метод

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
Результат void

SvgLength() публичный Метод

public SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthDirection direction, string baseVal ) : System
ownerElement SvgElement
propertyName string
direction SvgLengthDirection
baseVal string
Результат System

SvgLength() публичный Метод

public SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthDirection direction, string baseVal, string defaultValue ) : System
ownerElement SvgElement
propertyName string
direction SvgLengthDirection
baseVal string
defaultValue string
Результат System

SvgLength() публичный Метод

public SvgLength ( SvgElement ownerElement, string propertyName, SvgLengthSource source, SvgLengthDirection direction, string defaultValue ) : System
ownerElement SvgElement
propertyName string
source SvgLengthSource
direction SvgLengthDirection
defaultValue string
Результат System