C# Класс window, blade

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

Private Properties

Свойство Тип Описание
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

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

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

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

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

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

addEventListener() публичный статический Метод

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

addEventListener() публичный статический Метод

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

alert() публичный статический Метод

Displays an alert message.
public static alert ( string message ) : void
message string The message text.
Результат void

blur() публичный статический Метод

Sets focus away from the window.
public static blur ( ) : void
Результат void

clearInterval() публичный статический Метод

Prevents further execution of a previously created interval.
public static clearInterval ( int intervalId ) : void
intervalId int The interval ID.
Результат void

clearTimeout() публичный статический Метод

Prevents execution of a previously created timeout.
public static clearTimeout ( int timeoutId ) : void
timeoutId int The timeout ID.
Результат void

close() публичный статический Метод

Closes the window.
public static close ( ) : void
Результат void

confirm() публичный статический Метод

Displays a confirmation message.
public static confirm ( string message ) : bool
message string The message text.
Результат bool

decodeURI() публичный статический Метод

Replaces each UTF-8 escape sequence with the character that it represents.
public static decodeURI ( string uri ) : string
uri string The URI to decode.
Результат string

decodeURIComponent() публичный статический Метод

Replaces each UTF-8 escape sequence with the character representation.
public static decodeURIComponent ( string uriComponent ) : string
uriComponent string The URI component to decode.
Результат string

dispatchEvent() публичный статический Метод

Dispatches an event through the taret.
public static dispatchEvent ( Event, evt ) : bool
evt Event, The event object.
Результат bool

encodeURI() публичный статический Метод

Replaces applicable characters of a URI with their UTF-8 encoded representation.
public static encodeURI ( string uri ) : string
uri string The URI to encode.
Результат string

encodeURIComponent() публичный статический Метод

Replaces applicable characters of a URI component with their UTF-8 encoded representation.
public static encodeURIComponent ( string uriComponent ) : string
uriComponent string The URI component.
Результат string

eval() публичный статический Метод

Executes a script at runtime.
public static eval ( string value ) : object
value string The script text.
Результат object

focus() публичный статический Метод

Sets focus on the current window.
public static focus ( ) : void
Результат void

getComputedStyle() публичный статический Метод

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

getComputedStyle() публичный статический Метод

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

isFinite() публичный статический Метод

Gets a value indicating whether or not the input is a finite number.
public static isFinite ( INumber value ) : bool
value INumber The input value.
Результат bool

isNaN() публичный статический Метод

Gets a value indicating whether or not the input is NaN.
public static isNaN ( INumber value ) : bool
value INumber The input value.
Результат bool

matchMedia() публичный статический Метод

Gets a MediaQueryList object representing the specified media query string.
public static matchMedia ( string queryString ) : MediaQueryList
queryString string
Результат MediaQueryList

open() публичный статический Метод

Opens a new window.
public static open ( string url ) : Window
url string The URL to open.
Результат Window

open() публичный статический Метод

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

open() публичный статический Метод

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

parseFloat() публичный статический Метод

Converts a string to a floating point numeric value.
public static parseFloat ( string value ) : double
value string The input string.
Результат double

parseInt() публичный статический Метод

Converts a string to an integer value.
public static parseInt ( string value ) : int
value string The input string.
Результат int

postMessage() публичный статический Метод

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

print() публичный статический Метод

Opens the browser's print dialog.
public static print ( ) : void
Результат void

prompt() публичный статический Метод

Displays a prompt requesting input from the user.
public static prompt ( string message ) : string
message string The prompt message.
Результат string

prompt() публичный статический Метод

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

removeEventListener() публичный статический Метод

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

removeEventListener() публичный статический Метод

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

requestAnimationFrame() публичный статический Метод

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

scroll() публичный статический Метод

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

scrollBy() публичный статический Метод

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

scrollTo() публичный статический Метод

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

setInterval() публичный статический Метод

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

setInterval() публичный статический Метод

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

setTimeout() публичный статический Метод

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

setTimeout() публичный статический Метод

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

showModalDialog() публичный статический Метод

Displays a modal dialog containing another document.
public static showModalDialog ( string url ) : object
url string The URL to show.
Результат object

showModalDialog() публичный статический Метод

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

stop() публичный статический Метод

Stops window loading.
public static stop ( ) : void
Результат void