C# Class window, blade

Inheritance: Form
Afficher le fichier Open project: vannatech/blade Class Usage Examples

Private Properties

Свойство Type Description
EventTarget bool
EventTarget void
Window CSSStyleDeclaration
Window CSSStyleDeclaration
Window MediaQueryList
Window Window,
Window Window,
Window Window,
Window bool
Window bool
Window double
Window int
Window int
Window int
Window object
Window object
Window string
Window string
Window void
Window void
Window void
Window void
Window void
Window void
window System

Méthodes publiques

Méthode Description
addEventListener ( string type, EventHandler, handler, bool useCapture ) : void

Registers an event handler with the target.

addEventListener ( string type, EventListener, listener, bool useCapture ) : void

Registers an event listener with the target.

alert ( string message ) : void

Displays an alert message.

blur ( ) : void

Sets focus away from the window.

clearInterval ( int intervalId ) : void

Prevents further execution of a previously created interval.

clearTimeout ( int timeoutId ) : void

Prevents execution of a previously created timeout.

close ( ) : void

Closes the window.

confirm ( string message ) : bool

Displays a confirmation message.

decodeURI ( string uri ) : string

Replaces each UTF-8 escape sequence with the character that it represents.

decodeURIComponent ( string uriComponent ) : string

Replaces each UTF-8 escape sequence with the character representation.

dispatchEvent ( Event, evt ) : bool

Dispatches an event through the taret.

encodeURI ( string uri ) : string

Replaces applicable characters of a URI with their UTF-8 encoded representation.

encodeURIComponent ( string uriComponent ) : string

Replaces applicable characters of a URI component with their UTF-8 encoded representation.

eval ( string value ) : object

Executes a script at runtime.

focus ( ) : void

Sets focus on the current window.

getComputedStyle ( Element elt ) : CSSStyleDeclaration

Gets the final CSS values resulting from all CSS properties applied to an element.

getComputedStyle ( Element elt, string pseudoElt ) : CSSStyleDeclaration

Gets the final CSS values resulting from all CSS properties applied to an element.

isFinite ( INumber value ) : bool

Gets a value indicating whether or not the input is a finite number.

isNaN ( INumber value ) : bool

Gets a value indicating whether or not the input is NaN.

matchMedia ( string queryString ) : MediaQueryList

Gets a MediaQueryList object representing the specified media query string.

open ( string url ) : Window

Opens a new window.

open ( string url, string name ) : Window

Opens a new window.

open ( string url, string name, string features ) : Window

Opens a new window.

parseFloat ( string value ) : double

Converts a string to a floating point numeric value.

parseInt ( string value ) : int

Converts a string to an integer value.

postMessage ( object message, string targetOrigin ) : void

Sends a message to another window, which may be in a different domain.

print ( ) : void

Opens the browser's print dialog.

prompt ( string message ) : string

Displays a prompt requesting input from the user.

prompt ( string message, string defaultValue ) : string

Displays a prompt requesting input from the user.

removeEventListener ( string type, EventHandler handler, bool useCapture ) : void

Removes an event handler from a target.

removeEventListener ( string type, EventListener listener, bool useCapture ) : void

Removes an event listener from a target.

requestAnimationFrame ( IFunction callback ) : void

Tells the browser that you wish to perform an animation and requests that the browser schedule a repaint of the window for the next animation frame.

This is provided for convenience but is not supported in all browsers, see https://developer.mozilla.org/en-US/docs/DOM/window.requestAnimationFrame#Browser_compatibility for details.

scroll ( int x, int y ) : void

Scrolls to a specific place in the document.

scrollBy ( int deltaX, int deltaY ) : void

Scrolls the document relative to its current position.

scrollTo ( int x, int y ) : void

Scrolls to a specific place in the document.

setInterval ( IFunction handler, int delay ) : int

Schedules a function to run at a specific interval.

setInterval ( string code, int delay ) : int

Schedules a code snippet to run at a specific interval.

setTimeout ( IFunction handler, int delay ) : int

Schedules a function to run once.

setTimeout ( string code, int delay ) : int

Schedules a code snippet to run once.

showModalDialog ( string url ) : object

Displays a modal dialog containing another document.

showModalDialog ( string url, object argument ) : object

Displays a modal dialog containing another document.

stop ( ) : void

Stops window loading.

Private Methods

Méthode Description
EventTarget ( Event, evt ) : bool
EventTarget ( string type, EventListener, listener, bool useCapture ) : void
Window ( Element, elt ) : CSSStyleDeclaration
Window ( Element, elt, string pseudoElt ) : CSSStyleDeclaration
Window ( string queryString ) : MediaQueryList
Window ( string url ) : Window,
Window ( string url, string name ) : Window,
Window ( string url, string name, string features ) : Window,
Window ( INumber value ) : bool
Window ( string message ) : bool
Window ( string value ) : double
Window ( IFunction handler, int delay ) : int
Window ( string value ) : int
Window ( string code, int delay ) : int
Window ( string url ) : object
Window ( string url, object argument ) : object
Window ( string message ) : string
Window ( string message, string defaultValue ) : string
Window ( ) : void
Window ( IFunction callback ) : void
Window ( int timeoutId ) : void
Window ( int x, int y ) : void
Window ( object message, string targetOrigin ) : void
Window ( string message ) : void
window ( ) : System

Method Details

addEventListener() public static méthode

Registers an event handler with the target.
public static addEventListener ( string type, EventHandler, handler, bool useCapture ) : void
type string The event type name.
handler EventHandler, The event handler function.
useCapture bool Whether or not to use capture.
Résultat void

addEventListener() public static méthode

Registers an event listener with the target.
public static addEventListener ( string type, EventListener, listener, bool useCapture ) : void
type string The event type name.
listener EventListener, The listener to register.
useCapture bool Whether or not to use capture.
Résultat void

alert() public static méthode

Displays an alert message.
public static alert ( string message ) : void
message string The message text.
Résultat void

blur() public static méthode

Sets focus away from the window.
public static blur ( ) : void
Résultat void

clearInterval() public static méthode

Prevents further execution of a previously created interval.
public static clearInterval ( int intervalId ) : void
intervalId int The interval ID.
Résultat void

clearTimeout() public static méthode

Prevents execution of a previously created timeout.
public static clearTimeout ( int timeoutId ) : void
timeoutId int The timeout ID.
Résultat void

close() public static méthode

Closes the window.
public static close ( ) : void
Résultat void

confirm() public static méthode

Displays a confirmation message.
public static confirm ( string message ) : bool
message string The message text.
Résultat bool

decodeURI() public static méthode

Replaces each UTF-8 escape sequence with the character that it represents.
public static decodeURI ( string uri ) : string
uri string The URI to decode.
Résultat string

decodeURIComponent() public static méthode

Replaces each UTF-8 escape sequence with the character representation.
public static decodeURIComponent ( string uriComponent ) : string
uriComponent string The URI component to decode.
Résultat string

dispatchEvent() public static méthode

Dispatches an event through the taret.
public static dispatchEvent ( Event, evt ) : bool
evt Event, The event object.
Résultat bool

encodeURI() public static méthode

Replaces applicable characters of a URI with their UTF-8 encoded representation.
public static encodeURI ( string uri ) : string
uri string The URI to encode.
Résultat string

encodeURIComponent() public static méthode

Replaces applicable characters of a URI component with their UTF-8 encoded representation.
public static encodeURIComponent ( string uriComponent ) : string
uriComponent string The URI component.
Résultat string

eval() public static méthode

Executes a script at runtime.
public static eval ( string value ) : object
value string The script text.
Résultat object

focus() public static méthode

Sets focus on the current window.
public static focus ( ) : void
Résultat void

getComputedStyle() public static méthode

Gets the final CSS values resulting from all CSS properties applied to an element.
public static getComputedStyle ( Element elt ) : CSSStyleDeclaration
elt Element The target element.
Résultat CSSStyleDeclaration

getComputedStyle() public static méthode

Gets the final CSS values resulting from all CSS properties applied to an element.
public static getComputedStyle ( Element elt, string pseudoElt ) : CSSStyleDeclaration
elt Element The target element.
pseudoElt string The pseudo-element to match.
Résultat CSSStyleDeclaration

isFinite() public static méthode

Gets a value indicating whether or not the input is a finite number.
public static isFinite ( INumber value ) : bool
value INumber The input value.
Résultat bool

isNaN() public static méthode

Gets a value indicating whether or not the input is NaN.
public static isNaN ( INumber value ) : bool
value INumber The input value.
Résultat bool

matchMedia() public static méthode

Gets a MediaQueryList object representing the specified media query string.
public static matchMedia ( string queryString ) : MediaQueryList
queryString string
Résultat MediaQueryList

open() public static méthode

Opens a new window.
public static open ( string url ) : Window
url string The URL to open.
Résultat Window

open() public static méthode

Opens a new window.
public static open ( string url, string name ) : Window
url string The URL to open.
name string The name to apply to the window.
Résultat Window

open() public static méthode

Opens a new window.
public static open ( string url, string name, string features ) : Window
url string The URL to open.
name string The name to apply to the window.
features string A string representing the features available on the window.
Résultat Window

parseFloat() public static méthode

Converts a string to a floating point numeric value.
public static parseFloat ( string value ) : double
value string The input string.
Résultat double

parseInt() public static méthode

Converts a string to an integer value.
public static parseInt ( string value ) : int
value string The input string.
Résultat int

postMessage() public static méthode

Sends a message to another window, which may be in a different domain.
public static postMessage ( object message, string targetOrigin ) : void
message object The message data.
targetOrigin string The origin for the receiving window.
Résultat void

print() public static méthode

Opens the browser's print dialog.
public static print ( ) : void
Résultat void

prompt() public static méthode

Displays a prompt requesting input from the user.
public static prompt ( string message ) : string
message string The prompt message.
Résultat string

prompt() public static méthode

Displays a prompt requesting input from the user.
public static prompt ( string message, string defaultValue ) : string
message string The prompt message.
defaultValue string The initial input value.
Résultat string

removeEventListener() public static méthode

Removes an event handler from a target.
public static removeEventListener ( string type, EventHandler handler, bool useCapture ) : void
type string The event type name.
handler EventHandler The event handler function.
useCapture bool Whether or not capture was used.
Résultat void

removeEventListener() public static méthode

Removes an event listener from a target.
public static removeEventListener ( string type, EventListener listener, bool useCapture ) : void
type string The event type name.
listener EventListener The listener to remove.
useCapture bool Whether or not capture was used.
Résultat void

requestAnimationFrame() public static méthode

Tells the browser that you wish to perform an animation and requests that the browser schedule a repaint of the window for the next animation frame.
This is provided for convenience but is not supported in all browsers, see https://developer.mozilla.org/en-US/docs/DOM/window.requestAnimationFrame#Browser_compatibility for details.
public static requestAnimationFrame ( IFunction callback ) : void
callback IFunction
Résultat void

scroll() public static méthode

Scrolls to a specific place in the document.
public static scroll ( int x, int y ) : void
x int The X position, in pixels.
y int The Y position, in pixels.
Résultat void

scrollBy() public static méthode

Scrolls the document relative to its current position.
public static scrollBy ( int deltaX, int deltaY ) : void
deltaX int The X position change, in pixels.
deltaY int The Y position change, in pixels.
Résultat void

scrollTo() public static méthode

Scrolls to a specific place in the document.
public static scrollTo ( int x, int y ) : void
x int The X position, in pixels.
y int The Y position, in pixels.
Résultat void

setInterval() public static méthode

Schedules a function to run at a specific interval.
public static setInterval ( IFunction handler, int delay ) : int
handler IFunction The function to execute.
delay int The delay, in milliseconds.
Résultat int

setInterval() public static méthode

Schedules a code snippet to run at a specific interval.
public static setInterval ( string code, int delay ) : int
code string The code to run.
delay int The delay, in milliseconds.
Résultat int

setTimeout() public static méthode

Schedules a function to run once.
public static setTimeout ( IFunction handler, int delay ) : int
handler IFunction The function to execute.
delay int The delay, in milliseconds.
Résultat int

setTimeout() public static méthode

Schedules a code snippet to run once.
public static setTimeout ( string code, int delay ) : int
code string The code to run.
delay int The delay, in milliseconds.
Résultat int

showModalDialog() public static méthode

Displays a modal dialog containing another document.
public static showModalDialog ( string url ) : object
url string The URL to show.
Résultat object

showModalDialog() public static méthode

Displays a modal dialog containing another document.
public static showModalDialog ( string url, object argument ) : object
url string The URL to show.
argument object Parameters that are passed to the document.
Résultat object

stop() public static méthode

Stops window loading.
public static stop ( ) : void
Résultat void