Small Basic API Reference
Arguments

The Arguments object provides operations to access the command-line arguments that were passed at the start of this program.

Array

This object provides a way of storing more than one value for a given name. These values can be accessed by another index.

Clock

This class provides access to the system clock

Desktop

This class provides methods to interact with the desktop.

Dictionary

This class provides access to an online Dictionary service.

File

The File object provides methods to access, read and write information from and to a file on disk. Using this object, it is possible to save and open settings across multiple sessions of your program.

Flickr

This class provides access to Flickr photo services.

GraphicsWindow

The GraphicsWindow provides graphics related input and output functionality. For example, using this class, it is possible to draw and fill circles and rectangles.

ImageList

This class helps to load and store images in memory.

Math

The Math class provides lots of useful mathematics related methods

Mouse

The mouse class provides accessors to get or set the mouse related properties, like the cursor position, pointer, etc.

Network

This private helper class provides network access methods

Program

The Program class provides helpers to control the program execution.

Shapes

The Shape object allows you to add, move and rotate shapes to the Graphics window.

Sound

The Sound object provides operations that allow the playback of sounds. Some sample sounds are provided along with the library.

Stack

This object provides a way of storing values just like stacking up a plate. You can push a value to the top of the stack and pop it off. You can only pop the values one by one off the stack and the last pushed value will be the first one to pop out.

Text

The Text object provides helpful operations for working with Text.

TextWindow

The TextWindow provides text-related input and output functionalities. For example using this class, it is possible to write or read some text or number to and from the text-based text window.

Timer

The Timer object provides an easy way for doing something repeatedly with a constant interval between.

Turtle

The Turtle provides Logo-like functionality to draw shapes by manipulating the properties of a pen and drawing primitives.


TextWindow

The TextWindow provides text-related input and output functionalities. For example using this class, it is possible to write or read some text or number to and from the text-based text window.

Properties

BackgroundColor

TextWindow.BackgroundColor

Gets or sets the background color of the text to be output in the text window.

CursorLeft

TextWindow.CursorLeft

Gets or sets the cursor's column position on the text window.

CursorTop

TextWindow.CursorTop

Gets or sets the cursor's row position on the text window.

ForegroundColor

TextWindow.ForegroundColor

Gets or sets the foreground color of the text to be output in the text window.

Left

TextWindow.Left

Gets or sets the Left position of the Text Window.

Title

TextWindow.Title

Gets or sets the Title for the text window.

Top

TextWindow.Top

Gets or sets the Top position of the Text Window.

Methods

Clear

TextWindow.Clear()

Clears the TextWindow.

Returns

Nothing

Hide

TextWindow.Hide()

Hides the text window.

Returns

Nothing

Pause

TextWindow.Pause()

Waits for user input before returning.

Returns

Nothing

PauseIfVisible

TextWindow.PauseIfVisible()

Waits for user input only when the TextWindow is already open.

Returns

Nothing

PauseWithoutMessage

TextWindow.PauseWithoutMessage()

Waits for user input before returning.

Returns

Nothing

Read

TextWindow.Read()

Reads a line of text from the text window. This function will not return until the user hits ENTER.

Returns

The text that was read from the text window

ReadNumber

TextWindow.ReadNumber()

Reads a number from the text window. This function will not return until the user hits ENTER.

Returns

The number that was read from the text window

Show

TextWindow.Show()

Shows the Text window to enable interactions with it.

Returns

Nothing

Write

TextWindow.Write(data)

Writes text or number to the text window. Unlike WriteLine, this will not append a new line character, which means, anything written to the text window after this call will be on the same line.

data

The text or number to write to the text window

Returns

Nothing

WriteLine

TextWindow.WriteLine(data)

Writes text or number to the text window. A new line character will be appended to the output, so that the next time something is written to the text window, it will go in a new line.

data

The text or number to write to the text window.

Returns

Nothing
(c) Copyright 2009, Microsoft Corporation. All rights reserved.