C# Class mtWPFScratchPad.Stroke

Exibir arquivo Open project: RIT-Tool-Time/Cascade Class Usage Examples

Public Methods

Method Description
Add ( Point pt ) : void

Adds a point to the stroke.

AddToCanvas ( System.Windows.Controls.Canvas canvas ) : void

Add the complete stroke

Freeze ( ) : void

Seal the object.

To improve performance, Seal replaces the list with fixed array.

Method Details

Add() public method

Adds a point to the stroke.
public Add ( Point pt ) : void
pt Point point to be added to the stroke
return void

AddToCanvas() public method

Add the complete stroke
public AddToCanvas ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas the canvas that hold all figures
return void

Freeze() public method

Seal the object.
To improve performance, Seal replaces the list with fixed array.
public Freeze ( ) : void
return void