C# Class mtWPFScratchPad.Stroke

Afficher le fichier Open project: RIT-Tool-Time/Cascade Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

AddToCanvas() public méthode

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

Freeze() public méthode

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