Northwoods.Go Assembly > Northwoods.Go Namespace > GoView Class : NewLinkPrototype Property |
'Declaration <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <DescriptionAttribute("An instance of a link to be copied when linking.")> <CategoryAttribute("Behavior")> Public Overridable Property NewLinkPrototype As GoObject
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] [DescriptionAttribute("An instance of a link to be copied when linking.")] [CategoryAttribute("Behavior")] public virtual GoObject NewLinkPrototype {get; set;}
The CreateLink method uses this property to determine what kind of link to create. It is also used by the GoToolLinking tool's CreateTemporaryLink method.
With this property, you can more easily initialize the properties of each new link to be created, by setting the properties once on this prototype object, rather than each time in a LinkCreated event handler. For coding purposes, it may be more convenient to refer to either the NewGoLink property to set GoLink properties if this object is a GoLink, or to the NewGoLabeledLink property to set GoLabeledLink properties, if this object is a GoLabeledLink.
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