Dispose()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Drawing Tool >

Dispose()

Previous page Return to chapter overview Next page

Definition

Releases any device resources used for the drawing tool.

 

Method Return Value

This method does not return a value

 

Syntax

Dispose()

 

Method Parameters

This method does not accept any parameters

 

Examples

ns


protected override void OnStateChange()
{
  if (State == State.SetDefaults)
  {
    Name                 = @"My Drawing Tool";    
  }
 
  else if (State == State.Terminated)
    Dispose();
}