StylusPointCollection::Reformat Method (StylusPointDescription^)
Finds the intersection of the specified StylusPointDescription and the Description property.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- subsetToReformatTo
-
Type:
System.Windows.Input::StylusPointDescription^
A StylusPointDescription to intersect with the StylusPointDescription of the current StylusPointCollection.
Return Value
Type: System.Windows.Input::StylusPointCollection^A StylusPointCollection that has a StylusPointDescription that is a subset of the specified StylusPointDescription and the StylusPointDescription that the current StylusPointCollection uses.
| Exception | Condition |
|---|---|
| ArgumentException | subsetToReformatTo is not a subset of the Description property. |
subsetToReformatTo is a StylusPointDescription which describes a subset of values belonging to the Description property. Use the GetCommonDescription method to get a StylusPointDescription that intersects the Description of the current StylusPointCollection.
The Reformat method returns a StylusPointCollection that contains the same StylusPoint objects as those belonging to the current StylusPointCollection. The StylusPoint objects in the new StylusPointCollection uses subsetToReformatTo as the StylusPointDescription.
Note |
|---|
Reformat uses the constraints from the StylusPointPropertyInfo of the Description property, even if the constraints in subsetToReformatTo are different. For example, if subsetToReformatTo uses the values 0 and 1023 for NormalPressure whereas Description uses the values 0 and 255. Reformat returns a StylusPointDescription using the values, 0 and 255. |
The following example demonstrates how to create a new StylusPointCollection that uses a different StylusPointDescription.
Available since 3.0
