Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StylusPointCollection::Reformat Method (StylusPointDescription^)

 

Finds the intersection of the specified StylusPointDescription and the Description property.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public:
StylusPointCollection^ Reformat(
	StylusPointDescription^ subsetToReformatTo
)

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.

System_CAPS_noteNote

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft