GoDigram for .NET Framework and .NET Core
Northwoods.Go.Svg Namespace / GoSvgWriter Class / GetSelectionId Method
In This Topic
    GetSelectionId Method
    In This Topic
    Return a document-wide unique string identifier for the given object, or null if cannot be selected in the SVG document.
    Syntax
    public virtual string GetSelectionId( 
       GoObject obj
    )

    Parameters

    obj

    Return Value

    the IGoIdentifiablePart.PartID, if obj is an IGoIdentifiablePart for which CanSelect() returns true and for which the PartID is nonnegative
    Remarks
    Only SVG elements that have a selection ID can be selected by the standard mechanisms implemented in SVG scripts when SupportsSelection is true. You may want to override this to return other strings, such as a label's unique text, or some other identifying information.
    See Also