C# 클래스 Open.Core.Css

CSS utility.
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 프로퍼티들

프로퍼티 타입 설명
Classes CoreCssClasses
Urls CoreCssUrls

공개 메소드들

메소드 설명
AbsoluteFill ( jQueryObject element ) : jQueryObject

Sets the given element to absolute positioning and sets all edges to 0px.

AddClasses ( jQueryObject target, string classValue ) : jQueryObject

Adds a single class, or multiple classs from a space seperated list.

AddOrRemoveClass ( jQueryObject element, string cssClass, bool add ) : jQueryObject

Adds or removes a class from the given element.

ApplyDropshadow ( jQueryObject element, string opacity ) : jQueryObject

Applies a drop shadow.

Center ( jQueryObject element, jQueryObject within, Spacing offset ) : jQueryObject

Sets the left and top position of an element so it is centered within another element.

CenterHorizontally ( jQueryObject element, jQueryObject within, Spacing offset ) : jQueryObject

Sets the left position of an element so it is horizontally centered within another element.

CenterVertically ( jQueryObject element, jQueryObject within, Spacing offset ) : jQueryObject

Sets the top position of an element so it is vertically centered within another element.

CopyClasses ( jQueryObject source, jQueryObject target ) : void

Copies the CSS classes from one element to another.

GetDimension ( jQueryObject element, SizeDimension dimension ) : int

Retrieves the size for the given dimension (Width or Height).

GetLink ( string url ) : Element

Retrieves the CSS with the given source (src) URL.

GetPixelBorder ( jQueryObject element ) : Spacing

Retrieves the border outline size for the given element (if it's border styles are specified in pixels).

HasPosition ( jQueryObject element ) : bool

Retrieves whether the element has a position value.

InsertLink ( string url ) : void

Inserts a CSS link within the document head (only if the CSS is not already present).

IsLinked ( string url ) : bool

Determines whether the specified URL has a link within the page.

IsVisible ( jQueryObject element ) : bool

Determines whether the element is visible (has any display value other than 'None').

RoundedCorners ( jQueryObject element, int topLeft, int topRight, int bottomRight, int bottomLeft ) : void

Applies rounded corners to the given element.

SelectFromId ( string identifier ) : jQueryObject

Performs a jQuery CSS selection with the given ID (pre-processing the ID format using the ToId() method).

SetDimension ( jQueryObject element, SizeDimension dimension, int value ) : void

Sets the size for the given dimension (Width or Height).

SetDisplay ( jQueryObject element, bool isVisible ) : jQueryObject

Shows or hides the given element using the Display property (collapses when not visible).

SetOpacity ( jQueryObject element, double percent ) : jQueryObject

Applies opacity.

SetOverflow ( jQueryObject element, CssOverflow value ) : jQueryObject

Sets the overflow style on the given element.

SetSize ( jQueryObject element, int width, int height ) : jQueryObject

Sets the size of the element.

SetVisibility ( jQueryObject element, bool isVisible ) : jQueryObject

Shows or hides the given element using the Visibility property (retains space when not visible).

ToClass ( string @class ) : string

Prepends the period (.) to a CSS class name if it's not present (eg: id='one' would be '.one').

ToId ( string identifier ) : string

Prepends the # to a CSS identifier if it's not present (eg: id='one' would be '#one').

ToSizeDimension ( Plane plane ) : SizeDimension

Converts an X:Y plane dimension to it's corresponding size-dimension.

비공개 메소드들

메소드 설명
Center ( jQueryObject element, jQueryObject within ) : jQueryObject
CenterHorizontally ( jQueryObject element, jQueryObject within ) : jQueryObject
CenterVertically ( jQueryObject element, jQueryObject within ) : jQueryObject
GetBorderEdge ( jQueryObject element, System.Edge edge ) : int
PrependSelectorPrefix ( string value, string prefix ) : string
RoundedCorners ( jQueryObject element, int pixelRadius ) : void

메소드 상세

AbsoluteFill() 공개 정적인 메소드

Sets the given element to absolute positioning and sets all edges to 0px.
public static AbsoluteFill ( jQueryObject element ) : jQueryObject
element jQueryObject The element to update.
리턴 jQueryObject

AddClasses() 공개 정적인 메소드

Adds a single class, or multiple classs from a space seperated list.
public static AddClasses ( jQueryObject target, string classValue ) : jQueryObject
target jQueryObject The target element to add to.
classValue string The class attribute value to apply.
리턴 jQueryObject

AddOrRemoveClass() 공개 정적인 메소드

Adds or removes a class from the given element.
public static AddOrRemoveClass ( jQueryObject element, string cssClass, bool add ) : jQueryObject
element jQueryObject The element to add or remove from.
cssClass string The CSS class name.
add bool Flag indicating whether the class should be added (true) or removed (false).
리턴 jQueryObject

ApplyDropshadow() 공개 정적인 메소드

Applies a drop shadow.
public static ApplyDropshadow ( jQueryObject element, string opacity ) : jQueryObject
element jQueryObject The element to update.
opacity string Opacity of the drop-shadow (005, 010, 020, 030, 040, 050, 060).
리턴 jQueryObject

Center() 공개 정적인 메소드

Sets the left and top position of an element so it is centered within another element.
public static Center ( jQueryObject element, jQueryObject within, Spacing offset ) : jQueryObject
element jQueryObject The element to center.
within jQueryObject The element to center within.
offset Spacing The offset to take into account when calculating position.
리턴 jQueryObject

CenterHorizontally() 공개 정적인 메소드

Sets the left position of an element so it is horizontally centered within another element.
public static CenterHorizontally ( jQueryObject element, jQueryObject within, Spacing offset ) : jQueryObject
element jQueryObject The element to horizontally center.
within jQueryObject The element to center within.
offset Spacing The offset to take into account when calculating position.
리턴 jQueryObject

CenterVertically() 공개 정적인 메소드

Sets the top position of an element so it is vertically centered within another element.
public static CenterVertically ( jQueryObject element, jQueryObject within, Spacing offset ) : jQueryObject
element jQueryObject The element to vertically center.
within jQueryObject The element to center within.
offset Spacing The offset to take into account when calculating position.
리턴 jQueryObject

CopyClasses() 공개 정적인 메소드

Copies the CSS classes from one element to another.
public static CopyClasses ( jQueryObject source, jQueryObject target ) : void
source jQueryObject The source element to copy from.
target jQueryObject The target element to copy to.
리턴 void

GetDimension() 공개 정적인 메소드

Retrieves the size for the given dimension (Width or Height).
public static GetDimension ( jQueryObject element, SizeDimension dimension ) : int
element jQueryObject The element to read.
dimension SizeDimension The dimension.
리턴 int

GetLink() 공개 정적인 메소드

Retrieves the CSS with the given source (src) URL.
public static GetLink ( string url ) : Element
url string The path to the CSS document to match (not case-sensitive).
리턴 System.Html.Element

GetPixelBorder() 공개 정적인 메소드

Retrieves the border outline size for the given element (if it's border styles are specified in pixels).
public static GetPixelBorder ( jQueryObject element ) : Spacing
element jQueryObject The element to examine.
리턴 Spacing

HasPosition() 공개 정적인 메소드

Retrieves whether the element has a position value.
public static HasPosition ( jQueryObject element ) : bool
element jQueryObject The element to examine.
리턴 bool

InsertLink() 공개 정적인 메소드

Inserts a CSS link within the document head (only if the CSS is not already present).
Thrown if a URL was not specified.
public static InsertLink ( string url ) : void
url string The URL of the CSS to load.
리턴 void

IsLinked() 공개 정적인 메소드

Determines whether the specified URL has a link within the page.
public static IsLinked ( string url ) : bool
url string The path to the CSS document to match (not case-sensitive).
리턴 bool

IsVisible() 공개 정적인 메소드

Determines whether the element is visible (has any display value other than 'None').
public static IsVisible ( jQueryObject element ) : bool
element jQueryObject The element to display.
리턴 bool

RoundedCorners() 공개 정적인 메소드

Applies rounded corners to the given element.
public static RoundedCorners ( jQueryObject element, int topLeft, int topRight, int bottomRight, int bottomLeft ) : void
element jQueryObject The element to apply rounded corners to.
topLeft int The top-left pixel radius.
topRight int The top-right pixel radius.
bottomRight int The bottom-right pixel radius.
bottomLeft int The bottom-left pixel radius.
리턴 void

SelectFromId() 공개 정적인 메소드

Performs a jQuery CSS selection with the given ID (pre-processing the ID format using the ToId() method).
public static SelectFromId ( string identifier ) : jQueryObject
identifier string The ID of the element.
리턴 jQueryObject

SetDimension() 공개 정적인 메소드

Sets the size for the given dimension (Width or Height).
public static SetDimension ( jQueryObject element, SizeDimension dimension, int value ) : void
element jQueryObject The element to read.
dimension SizeDimension The dimension.
value int The value to set.
리턴 void

SetDisplay() 공개 정적인 메소드

Shows or hides the given element using the Display property (collapses when not visible).
public static SetDisplay ( jQueryObject element, bool isVisible ) : jQueryObject
element jQueryObject The element to effect.
isVisible bool The desired visibility state.
리턴 jQueryObject

SetOpacity() 공개 정적인 메소드

Applies opacity.
public static SetOpacity ( jQueryObject element, double percent ) : jQueryObject
element jQueryObject The element to effect.
percent double The opacity percentage (0..1).
리턴 jQueryObject

SetOverflow() 공개 정적인 메소드

Sets the overflow style on the given element.
public static SetOverflow ( jQueryObject element, CssOverflow value ) : jQueryObject
element jQueryObject The element to update.
value CssOverflow The overflow value.
리턴 jQueryObject

SetSize() 공개 정적인 메소드

Sets the size of the element.
public static SetSize ( jQueryObject element, int width, int height ) : jQueryObject
element jQueryObject The element to effect.
width int The pixel width of the element.
height int The pixel height of the element.
리턴 jQueryObject

SetVisibility() 공개 정적인 메소드

Shows or hides the given element using the Visibility property (retains space when not visible).
public static SetVisibility ( jQueryObject element, bool isVisible ) : jQueryObject
element jQueryObject The element to effect.
isVisible bool The desired visibility state.
리턴 jQueryObject

ToClass() 공개 정적인 메소드

Prepends the period (.) to a CSS class name if it's not present (eg: id='one' would be '.one').
public static ToClass ( string @class ) : string
@class string
리턴 string

ToId() 공개 정적인 메소드

Prepends the # to a CSS identifier if it's not present (eg: id='one' would be '#one').
public static ToId ( string identifier ) : string
identifier string The ID value.
리턴 string

ToSizeDimension() 공개 정적인 메소드

Converts an X:Y plane dimension to it's corresponding size-dimension.
public static ToSizeDimension ( Plane plane ) : SizeDimension
plane Plane The plane to convert.
리턴 SizeDimension

프로퍼티 상세

Classes 공개적으로 정적으로 프로퍼티

public static CoreCssClasses,Open.Core Classes
리턴 CoreCssClasses

Urls 공개적으로 정적으로 프로퍼티

public static CoreCssUrls,Open.Core Urls
리턴 CoreCssUrls