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.


Turtle

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

Properties

Angle

Turtle.Angle

Gets or sets the current angle of the turtle. While setting, this will turn the turtle instantly to the new angle.

Speed

Turtle.Speed

Specifies how fast the turtle should move. Valid values are 1 to 10. If Speed is set to 10, the turtle moves and rotates instantly.

X

Turtle.X

Gets or sets the X location of the Turtle. While setting, this will move the turtle instantly to the new location.

Y

Turtle.Y

Gets or sets the Y location of the Turtle. While setting, this will move the turtle instantly to the new location.

Methods

Hide

Turtle.Hide()

Hides the Turtle and disables interactions with it.

Returns

Nothing

Move

Turtle.Move(distance)

Moves the turtle to a specified distance. If the pen is down, it will draw a line as it moves.

distance

The distance to move the turtle.

Returns

Nothing

MoveTo

Turtle.MoveTo(x, y)

Turns and moves the turtle to the specified location. If the pen is down, it will draw a line as it moves.

x

The x co-ordinate of the destination point.

y

The y co-ordinate of the destination point.

Returns

Nothing

PenDown

Turtle.PenDown()

Sets the pen down to enable the turtle to draw as it moves.

Returns

Nothing

PenUp

Turtle.PenUp()

Lifts the pen up to stop drawing as the turtle moves.

Returns

Nothing

Show

Turtle.Show()

Shows the Turtle to enable interactions with it.

Returns

Nothing

Turn

Turtle.Turn(angle)

Turns the turtle by the specified angle. Angle is in degrees and can be either positive or negative. If the angle is positive, the turtle turns to its right. If it is negative, the turtle turns to its left.

angle

The angle to turn the turtle.

Returns

Nothing

TurnLeft

Turtle.TurnLeft()

Turns the turtle 90 degrees to the left.

Returns

Nothing

TurnRight

Turtle.TurnRight()

Turns the turtle 90 degrees to the right.

Returns

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