GoDiagram Web Reference
UserObject Property (GoDocument)

Gets or sets an object associated with this document.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("An object associated with this document.")>
Public Overridable Property UserObject As Object
[DefaultValueAttribute()]
[DescriptionAttribute("An object associated with this document.")]
public virtual object UserObject {get; set;}

Property Value

The initial value is null. The value should be serializable.
Remarks
In some cases you may be able to avoid creating a subclass of GoDocument by using this property to hold your application specific state. However, in general it would be best to derive a subclass holding your custom fields, because you will be able to control access to your document state more clearly, and because you will be able to override various methods to customize behavior more cleanly.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoDocument Class
GoDocument Members
UserFlags Property

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback