Sdílet prostřednictvím


ContextNode.LoadPropertiesData Method

Recreates the application-specific and internal property data for an array of bytes that was previously created with SavePropertiesData.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Function LoadPropertiesData ( _
    propertiesData As Byte() _
) As Boolean
'Usage
Dim instance As ContextNode 
Dim propertiesData As Byte()
Dim returnValue As Boolean 

returnValue = instance.LoadPropertiesData(propertiesData)
public bool LoadPropertiesData(
    byte[] propertiesData
)
public:
bool LoadPropertiesData(
    array<unsigned char>^ propertiesData
)
public function LoadPropertiesData(
    propertiesData : byte[]
) : boolean

Parameters

  • propertiesData
    Type: array<System.Byte[]

    An array of bytes that is used to recreate application-specific and internal property data.

Return Value

Type: System.Boolean
true if the data is loaded successfully; otherwise, false.

Remarks

In cases of corrupt input, this method throws a System.ArgumentException exception.

Examples

This example loads the properties data from a byte array, data, into a ContextNode object named inkWord. A message displays if the properties do not load successfully.

If Not inkWord.LoadPropertiesData(data) Then
    MessageBox.Show("Cannot load property data")
End If
if (!inkWord.LoadPropertiesData(data))
    MessageBox.Show("Cannot load property data");

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNode Class

ContextNode Members

System.Windows.Ink Namespace

ContextNode.AddPropertyData

ContextNode.ContainsPropertyData

ContextNode.GetPropertyData

ContextNode.RemovePropertyData

ContextNode.SavePropertiesData