Share via


IXRDrawingAttributes (Compact 2013)

3/28/2014

This class specifies the drawing attributes of an ink stroke.

Syntax

class IXRDrawingAttributes : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

  IXRDrawingAttributes

Methods

In addition to the methods inherited from IXRDependencyObject, this class contains the following methods.

Name

Description

IXRDrawingAttributes::GetColor

Retrieves the color of an ink stroke.

IXRDrawingAttributes::GetHeight

Retrieves the height of the stylus tip.

IXRDrawingAttributes::GetOutlineColor

Retrieves the outline color of an ink stroke.

IXRDrawingAttributes::GetWidth

Retrieves the width of the stylus tip.

IXRDrawingAttributes::SetColor

Sets the color of an ink stroke.

IXRDrawingAttributes::SetHeight

Sets the height of the stylus tip.

IXRDrawingAttributes::SetOutlineColor

Sets the outline color of an ink stroke.

IXRDrawingAttributes::SetWidth

Sets the width of the stylus tip.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

You use the IXRDrawingAttributes class to specify drawing attributes, such as height, width, color, and outline color. You can use the IXRStroke::SetDrawingAttributes method to apply the drawing attributes to a stroke.

When you create a class instance, use an IXRDrawingAttributesPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define an IXRDrawingAttributes object in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the DrawingAttributes Class on MSDN.

.NET Framework Equivalent

System.Windows.Ink.DrawingAttributes

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Ink Input