GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / StandardizeCursorName Method
In This Topic
    StandardizeCursorName Method
    In This Topic
    Convert a cursor name to a standardized name.
    Syntax
    public virtual string StandardizeCursorName( 
       string s
    )

    Parameters

    s
    Remarks

    Standard cursor names are basically those used by CSS2. This list includes: "default", "pointer", "move", "crosshair", "text", "help", "wait", "not-allowed", and "*-resize" where "*" is one of: "n", "ne", "nw", "s", "se", "sw", "e", "w", "col", or "row". Other names are lowercased and returned, allowing for the user of other cursors supported by Windows Forms (e.g. "pannorth") that are not recognized by CSS2, or those cursors defined by CSS for WebForms or SVG but that are not standard in Windows Forms.

    This method will recognize the names of some System.Windows.Forms.Cursors properties and substitute the corresponding standard cursor names. These currently include: "Cross" (becomes "crosshair"), "Hand" (becomes "pointer"), "SizeAll" (becomes "move"), "SizeNESW" (becomes "ne-resize"), "SizeNS" (becomes "s-resize"), "SizeNWSE" (becomes "se-resize"), "SizeWE" (becomes "e-resize"), "VSplit" (becomes "col-resize"), "HSplit" (becomes "row-resize"), "No" (becomes "not-allowed"), "WaitCursor" (becomes "wait"), and "IBeam" (becomes "text").

    See Also