PropertyPage.State Property

DirectX.Capture

DirectX.Capture Class Library

PropertyPage.State Property

Get or set the state of the property page. This is used to save and restore the user's choices without redisplaying the property page.

public virtual byte[] State {get; set;}

Remarks

After showing this property page, read and store the value of this property. At a later time, the user's choices can be reloaded by setting this property with the value stored earlier. Note that some property pages, after setting this property, will not reflect the new state. However, the filter will use the new settings.

When reading this property, copy the entire array at once then manipulate your local copy (e..g byte[] myState = propertyPage.State). When setting this property set the entire array at once (e.g. propertyPage = myState).

Not all property pages support saving/loading state. Check the SupportsPersisting property to determine if this property page supports it.

See Also

PropertyPage Class | PropertyPage Members | DirectX.Capture Namespace