This documentation is archived and is not being maintained.

StylusPointDescription.StylusPointDescription(Generic IEnumerable) Constructor

Initializes a new instance of the StylusPointDescription class with the specified StylusPointPropertyInfo objects.

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

public StylusPointDescription (
	IEnumerable<StylusPointPropertyInfo> stylusPointPropertyInfos
public StylusPointDescription (
	IEnumerable<StylusPointPropertyInfo> stylusPointPropertyInfos
public function StylusPointDescription (
	stylusPointPropertyInfos : IEnumerable<StylusPointPropertyInfo>
You cannot use constructors in XAML.



A generic IEnumerable of type StylusPointPropertyInfo that specifies the properties in the StylusPointDescription.

You must pass in StylusPointPropertyInfo objects for the properties, X, Y, and NormalPressure.

The following example creates an StylusPointDescription object and uses it to create a StylusPoint.

StylusPointDescription newDescription =
      new StylusPointDescription(new StylusPointPropertyInfo[]
                        new StylusPointPropertyInfo(StylusPointProperties.X),
                        new StylusPointPropertyInfo(StylusPointProperties.Y),
                        new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
                        new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation),
                        new StylusPointPropertyInfo(StylusPointProperties.YTiltOrientation),
                        new StylusPointPropertyInfo(StylusPointProperties.BarrelButton)

int[] propertyValues = { 1800, 1000, 1 };

StylusPoint newStylusPoint = new StylusPoint(100, 100, .5f, newDescription, propertyValues);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0