Search Results for

    Show / Hide Table of Contents

    Class DrawHelper

    Static drawing utilities for the tab control, providing helpers such as rendering reversed (rotated) text and painting raised plain-style borders.

    Inheritance
    object
    DrawHelper
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing.Forms
    Assembly: Reportman.Drawing.Forms.dll
    Syntax
    public class DrawHelper

    Constructors

    View Source

    DrawHelper()

    Declaration
    public DrawHelper()

    Fields

    View Source

    _halfToneBrush

    Declaration
    protected static nint _halfToneBrush
    Field Value
    Type Description
    nint

    Methods

    View Source

    DrawButtonCommand(Graphics, VisualStyle, Direction, Rectangle, CommandState, Color, Color, Color)

    Declaration
    public static void DrawButtonCommand(Graphics g, VisualStyle style, Direction direction, Rectangle drawRect, DrawHelper.CommandState state, Color baseColor, Color trackLight, Color trackBorder)
    Parameters
    Type Name Description
    Graphics g
    VisualStyle style
    Direction direction
    Rectangle drawRect
    DrawHelper.CommandState state
    Color baseColor
    Color trackLight
    Color trackBorder
    View Source

    DrawPlainRaised(Graphics, Rectangle, Color)

    Declaration
    public static void DrawPlainRaised(Graphics g, Rectangle boxRect, Color baseColor)
    Parameters
    Type Name Description
    Graphics g
    Rectangle boxRect
    Color baseColor
    View Source

    DrawPlainRaisedBorder(Graphics, Rectangle, Color, Color, Color, Color)

    Declaration
    public static void DrawPlainRaisedBorder(Graphics g, Rectangle rect, Color lightLight, Color baseColor, Color dark, Color darkDark)
    Parameters
    Type Name Description
    Graphics g
    Rectangle rect
    Color lightLight
    Color baseColor
    Color dark
    Color darkDark
    View Source

    DrawPlainRaisedBorderTopOrBottom(Graphics, Rectangle, Color, Color, Color, Color, bool)

    Declaration
    public static void DrawPlainRaisedBorderTopOrBottom(Graphics g, Rectangle rect, Color lightLight, Color baseColor, Color dark, Color darkDark, bool drawTop)
    Parameters
    Type Name Description
    Graphics g
    Rectangle rect
    Color lightLight
    Color baseColor
    Color dark
    Color darkDark
    bool drawTop
    View Source

    DrawPlainSunken(Graphics, Rectangle, Color)

    Declaration
    public static void DrawPlainSunken(Graphics g, Rectangle boxRect, Color baseColor)
    Parameters
    Type Name Description
    Graphics g
    Rectangle boxRect
    Color baseColor
    View Source

    DrawPlainSunkenBorder(Graphics, Rectangle, Color, Color, Color, Color)

    Declaration
    public static void DrawPlainSunkenBorder(Graphics g, Rectangle rect, Color lightLight, Color baseColor, Color dark, Color darkDark)
    Parameters
    Type Name Description
    Graphics g
    Rectangle rect
    Color lightLight
    Color baseColor
    Color dark
    Color darkDark
    View Source

    DrawPlainSunkenBorderTopOrBottom(Graphics, Rectangle, Color, Color, Color, Color, bool)

    Declaration
    public static void DrawPlainSunkenBorderTopOrBottom(Graphics g, Rectangle rect, Color lightLight, Color baseColor, Color dark, Color darkDark, bool drawTop)
    Parameters
    Type Name Description
    Graphics g
    Rectangle rect
    Color lightLight
    Color baseColor
    Color dark
    Color darkDark
    bool drawTop
    View Source

    DrawReverseString(Graphics, string, Font, Rectangle, Brush, StringFormat)

    Declaration
    public static void DrawReverseString(Graphics g, string drawText, Font drawFont, Rectangle drawRect, Brush drawBrush, StringFormat drawFormat)
    Parameters
    Type Name Description
    Graphics g
    string drawText
    Font drawFont
    Rectangle drawRect
    Brush drawBrush
    StringFormat drawFormat
    View Source

    DrawSeparatorCommand(Graphics, VisualStyle, Direction, Rectangle, Color)

    Declaration
    public static void DrawSeparatorCommand(Graphics g, VisualStyle style, Direction direction, Rectangle drawRect, Color baseColor)
    Parameters
    Type Name Description
    Graphics g
    VisualStyle style
    Direction direction
    Rectangle drawRect
    Color baseColor
    • View Source
    In this article
    Back to top Generated by DocFX