Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.ui   Previous This
Package
Next

 


Class UICanvas

public class UICanvas extends UIStateComponent
{
  // Methods
  public int getID();
  public String getName();
  public void setID(int id);
  public void setName(String name);
}

This class implements a canvas control. UICanvas objects, such as UIDrawText controls, UILine controls, and UIStatic controls, provide a context for displaying text or images. UICanvas defines methods for retrieving and setting the object's name and identifier.

UIComponent
  |
  +--UIStateComponent
    |
    +--UICanvas

Methods

getID

public int getID();

Retrieves the control's identifier.

Return Value:

Returns the integer associated with the control.

See Also: setID, getName

getName

public String getName();

Retrieves the control's name.

Return Value:

Returns the string that displays the control's associated name.

See Also: setName, getID

setID

public void setID(int id);

Sets the control's identifier.

Return Value:

No return value.

ParameterDescription
id The value to be associated with the control.

See Also: getID, setName

setName

public void setName(String name);

Sets the control's name.

Return Value:

No return value.

ParameterDescription
name The name to be associated with the control.

See Also: getName, setID

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.