C# 클래스 Open.Core.Spacing

Represents a spacing for edges (left, right, top, bottom).
상속: ModelBase
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL 1 사용 예제들

공개 메소드들

메소드 설명
Change ( int left, int top, int right, int bottom ) : void

Changes all edge values.

CopyValues ( Spacing spacing ) : void

Copies the values from the given Spacing object.

GetOffset ( Plane plane ) : int

Gets the edge offset for the given plane (HorizontalOffset or VerticalOffset).

GetValue ( System.Edge edge ) : int

Gets the value for the specified edge.

PropertyRefFromEdge ( Edge edge ) : PropertyRef

Gets the property-ref for the specified edge.

SetValue ( Edge edge, int value ) : void

Sets the value for the specified edge.

Spacing ( int left, int top, int right, int bottom ) : System

Constructor.

Sync ( jQueryObject inner, SpacingSync onBeforeSync ) : Spacing

Creates a Spacing object that handles keeping an 'inner' object's size synced to its parent by settings it's making position:absolute and keeping it's - left - right - top - bottom CSS properties in sync with this Spacing object.

ToEdge ( string propertyName ) : Edge

Converts the specified property-ref to an edge.

ToString ( ) : string
UpdateLayout ( ) : void

Syncs the bound element (if the element is bound to this Spacing object. See static create methods).

비공개 메소드들

메소드 설명
Change ( int value ) : void
Change ( int leftRight, int topBottom ) : void
FormatValue ( int value ) : int
InitializeSyncing ( ) : void
Spacing ( ) : System
Spacing ( int uniform ) : System
Sync ( jQueryObject inner ) : Spacing
SyncEdge ( Edge edge ) : void

메소드 상세

Change() 공개 메소드

Changes all edge values.
public Change ( int left, int top, int right, int bottom ) : void
left int The left value.
top int The top value.
right int The right value.
bottom int The bottom value.
리턴 void

CopyValues() 공개 메소드

Copies the values from the given Spacing object.
public CopyValues ( Spacing spacing ) : void
spacing Spacing The object to copy from.
리턴 void

GetOffset() 공개 메소드

Gets the edge offset for the given plane (HorizontalOffset or VerticalOffset).
public GetOffset ( Plane plane ) : int
plane Plane The X:Y plane to retrieve the offset for.
리턴 int

GetValue() 공개 메소드

Gets the value for the specified edge.
public GetValue ( System.Edge edge ) : int
edge System.Edge The edge to retrieve the value for.
리턴 int

PropertyRefFromEdge() 공개 메소드

Gets the property-ref for the specified edge.
public PropertyRefFromEdge ( Edge edge ) : PropertyRef
edge Edge The edge to retrieve the property ref for.
리턴 PropertyRef

SetValue() 공개 메소드

Sets the value for the specified edge.
public SetValue ( Edge edge, int value ) : void
edge Edge The edge to write the value for.
value int The edge value.
리턴 void

Spacing() 공개 메소드

Constructor.
public Spacing ( int left, int top, int right, int bottom ) : System
left int The left value.
top int The top value.
right int The right value.
bottom int The botton value.
리턴 System

Sync() 공개 메소드

Creates a Spacing object that handles keeping an 'inner' object's size synced to its parent by settings it's making position:absolute and keeping it's - left - right - top - bottom CSS properties in sync with this Spacing object.
public Sync ( jQueryObject inner, SpacingSync onBeforeSync ) : Spacing
inner jQueryObject The inner object in the sync relationship.
onBeforeSync SpacingSync Invoked before the inner element is updated (use to alter the spacing values).
리턴 Spacing

ToEdge() 공개 정적인 메소드

Converts the specified property-ref to an edge.
public static ToEdge ( string propertyName ) : Edge
propertyName string The name of the property.
리턴 Edge

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

UpdateLayout() 공개 메소드

Syncs the bound element (if the element is bound to this Spacing object. See static create methods).
public UpdateLayout ( ) : void
리턴 void