GoDiagram Web Reference
StandardizeCursorName Method

Convert a cursor name to a standardized name.
Syntax
'Declaration
 
Public Overridable Function StandardizeCursorName( _
   ByVal s As String _
) As String
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").

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

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback