Version

ConvertToHatchStyle Method

Converts from a BackHatchStyle enumeration and returns a System.Drawing.Drawing2D.HatchStyle value that is equivalent.
Syntax
'Declaration
 
Public Shared Function ConvertToHatchStyle( _
   ByVal backHatchStyle As BackHatchStyle _
) As HatchStyle
public static HatchStyle ConvertToHatchStyle( 
   BackHatchStyle backHatchStyle
)

Parameters

backHatchStyle
The style to convert from.

Return Value

Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionIf the passed in value is Default or None
Remarks
The enumeration values are offset by 2 to accomodate the Default and None values of the BackHatchStyle enumeration.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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