C# Класс LitDev.LDUtilities

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
showPreview bool

Private Properties

Свойство Тип Описание
ExitButtonMode void
GWCapture void
GWPrint void
PauseUpdates void
RegexMatch Primitive
RegexReplace Primitive
ResumeUpdates void
TWCapture void
TWPrint void
TopMostGW void
TransparentGW void
UnZip Primitive
Zip Primitive
ZipList Primitive

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

Метод Описание
CleanTemp ( ) : Primitive

Delete all Small Basic related files from the temp folder. These are files with extensions tmp, pdb and dll. Other applications may also use these, so best to use with no other apps running.

ColourList ( ) : Primitive

Get an array of available colour names.

FixFlickr ( ) : void

Fix the Flickr object (Version 1.0).

FontList ( ) : Primitive

Get an array of available font names.

GetCultureInvariantNumber ( Primitive input ) : Primitive

Get a number expressed in the culture invariant form. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.

GetCurrentCultureNumber ( Primitive input ) : Primitive

Get a number expressed in the current culture. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.

GetNextMapIndex ( Primitive listName ) : Primitive

Get the next integer for object names. For example Buttons are labeled "Button1", "Button2" etc. This method returns the integer index that would be used for the next object added.

IsNumber ( Primitive input ) : Primitive

Test if the input will be treated by SmallBasic as a number. This is a culture invariant number, e.g. "3.14", but not "3,14" or "24x".

KeyDown ( Primitive key ) : Primitive

Get if a key is down. Useful for simplified keyboard game control.

Version ( ) : Primitive

Gets the current version of the extension and displays a window with this information and a changelog.

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

Метод Описание
ExitButtonMode ( Primitive window, Primitive mode ) : void
GWCapture ( Primitive fileName, Primitive border ) : void
GWPrint ( Primitive border ) : void
PauseUpdates ( ) : void
RegexMatch ( Primitive input, Primitive pattern, Primitive caseSensitive ) : Primitive
RegexReplace ( Primitive input, Primitive pattern, Primitive replacement, Primitive caseSensitive ) : Primitive
ResumeUpdates ( ) : void
TWCapture ( Primitive fileName, Primitive border ) : void
TWPrint ( Primitive border ) : void
TopMostGW ( Primitive top ) : void
TransparentGW ( ) : void
UnZip ( Primitive zipFile, Primitive directory ) : Primitive
Zip ( Primitive zipFile, Primitive files ) : Primitive
ZipList ( Primitive zipFile ) : Primitive

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

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

Delete all Small Basic related files from the temp folder. These are files with extensions tmp, pdb and dll. Other applications may also use these, so best to use with no other apps running.
public static CleanTemp ( ) : Primitive
Результат Primitive

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

Get an array of available colour names.
public static ColourList ( ) : Primitive
Результат Primitive

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

Fix the Flickr object (Version 1.0).
public static FixFlickr ( ) : void
Результат void

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

Get an array of available font names.
public static FontList ( ) : Primitive
Результат Primitive

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

Get a number expressed in the culture invariant form. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.
public static GetCultureInvariantNumber ( Primitive input ) : Primitive
input Primitive A number expressed in the current culture.
Результат Primitive

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

Get a number expressed in the current culture. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.
public static GetCurrentCultureNumber ( Primitive input ) : Primitive
input Primitive A culture invariant number.
Результат Primitive

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

Get the next integer for object names. For example Buttons are labeled "Button1", "Button2" etc. This method returns the integer index that would be used for the next object added.
public static GetNextMapIndex ( Primitive listName ) : Primitive
listName Primitive /// The map (list) type, valid listNames (Case sensitive) are: /// "Button" /// "TextBox" /// "ImageList" /// "Ellipse" /// "Image" /// "Line" /// "Rectangle" /// "Text" /// "Triangle" /// "Polygon" /// "Control" ///
Результат Primitive

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

Test if the input will be treated by SmallBasic as a number. This is a culture invariant number, e.g. "3.14", but not "3,14" or "24x".
public static IsNumber ( Primitive input ) : Primitive
input Primitive The input to test.
Результат Primitive

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

Get if a key is down. Useful for simplified keyboard game control.
public static KeyDown ( Primitive key ) : Primitive
key Primitive The key to get down state, eg "Space".
Результат Primitive

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

Gets the current version of the extension and displays a window with this information and a changelog.
public static Version ( ) : Primitive
Результат Primitive

Описание свойств

showPreview публичное статическое свойство

public static bool showPreview
Результат bool