C# 클래스 SharpVectors.Dom.Svg.SvgLength

상속: ISvgLength
파일 보기 프로젝트 열기: codebutler/savagesvg 1 사용 예제들

공개 메소드들

메소드 설명
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