• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    IPainter Interface

    Definition

    Namespace: Alternet.Common
    Assembly: Alternet.Common.v9.dll

    Encapsulates a drawing surface, providing properties and methods used to draw text and graphic primitives.

    Syntax
    public interface IPainter : IDisposable

    Properties

    BackColor

    When implemented by a class, gets or sets background color of the device context currently associated with the IPainter.

    Font

    When implemented by a class, gets or sets font of the device context currently associated with the IPainter.

    FontHeight

    When implemented by a class, represents height of the font of the device context currently associated with the IPainter.

    FontStyle

    When implemented by a class, gets or sets font style of the device context currently associated with the IPainter.

    FontWidth

    When implemented by a class, represents width of the font of the device context currently associated with the IPainter.

    ForeColor

    When implemented by a class, gets or sets foreground color of the device context currently associated with the IPainter.

    Graphics

    When implemented by a class, represents Graphics object used to paint.

    IsMonoSpaced

    When implemented by a class, represents a value indicating whether font of the device context currently associated with this IPainter is monospaced, meaning that all characters drawn with this font have the same width.

    LineHeight

    When implemented by a class, represents height of the individual lines.

    LineSpace

    When implemented by a class, Represents additional height added to the height of the font.

    Opaque

    When implemented by a class, gets or sets a boolean value indicating that background is filled with the current background color before the text is drawn.

    StringFormat

    When implemented by a class, encapsulates text layout information and display manipulations for this IPainter.

    TextColor

    When implemented by a class, gets or sets text color of the device context currently associated with the IPainter.

    Transformation

    When implemented by a class gets the world transformation for Graphics property.

    UseDrawText

    When implemented by a class, indicates whether painter should use DrawText method rather then ExtTextOut to paint text.

    Methods

    BeginPaint(Graphics)

    When implemented by a class, prepares the IPainter to paint. Associates new device context from given Graphics object to IPainter and preserves IPainter properties. EndPaint()

    CharWidth(Char, Int32)

    When implemented by a class, returns width of the given number of specified character.

    CharWidth(Char, Int32, out Int32, Boolean)

    When implemented by a class, returns width of the such number of the specified characters fitting into the given Width.

    Clear()

    When implemented by a class, resets all IPainter properties to the initial state.

    DrawDotLine(Int32, Int32, Int32, Int32, Color, Color, Int32)

    When implemented by a class, draws a dotted line from the given start position up to the specified end point.

    DrawEdge(ref Rectangle, Border3DStyle, Border3DSide)

    When implemented by a class, draws one or more edges of rectangle.

    DrawEdge(ref Rectangle, Border3DStyle, Border3DSide, Int32)

    When implemented by a class, draws one or more edges of rectangle.

    DrawFocusRect(Rectangle, Color)

    When implemented by a class, draws a border around the specified rectangle using current BackColor.

    DrawFocusRect(Int32, Int32, Int32, Int32, Color)

    When implemented by a class, draws a border around the specified rectangle using dot pattern.

    DrawFrameRect(Rectangle, Color, Int32)

    When implemented by a class, draws a border around the specified rectangle using current BackColor.

    DrawImage(Image, Rectangle)

    When implemented by a class, draws image in the specified rectangular area.

    DrawImage(ImageList, Int32, Rectangle)

    When implemented by a class, draws specified image in the specified rectangular area.

    DrawImage(ImageList, Int32, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes)

    When implemented by a class, draws specified image in the specified rectangular area.

    DrawLine(Int32, Int32, Int32, Int32)

    When implemented by a class, draws a line from the given start position up to, but not including, the specified end point.

    DrawLine(Int32, Int32, Int32, Int32, Color, Int32, DashStyle)

    When implemented by a class, draws a line from the given start position up to, but not including, the specified end point.

    DrawPolygon(Point[], Color)

    When implemented by a class, draws a polygon defined by an array of Point structures.

    DrawRectangle(Rectangle)

    When implemented by a class, draws a border around the specified rectangle using current BackColor.

    DrawRectangle(Int32, Int32, Int32, Int32)

    When implemented by a class, draws a border around the specified rectangle using dot pattern.

    DrawRoundRectangle(Int32, Int32, Int32, Int32, Int32, Int32)

    When implemented by a class, draws a rectangle with rounded corners. The rectangle is outlined by using the current pen.

    DrawText(String, Int32, Rectangle)

    When implemented by a class, draws text in the specified rectangle using current values of TextColor and BackColor.

    DrawThemeBackground(IntPtr, Int32, Int32, Rectangle)

    When implemented by a class, draws the background image defined by the visual style for the specified control part.

    DrawWave(Rectangle, Color)

    When implemented by a class, draws waved line in the specified rectangular area.

    EndPaint()

    When implemented by a class, marks the end of painting. Releases device context associated with this IPainter and restores saved IPainter properties. BeginPaint(Graphics)

    EndTransform()

    When implemented by a class, sets default two-dimensional linear transformation for the specified device context.

    ExcludeClipRect(Rectangle)

    When implemented by a class, creates a new clipping region that consists of the existing clipping region minus the specified rectangle.

    ExcludeClipRect(Int32, Int32, Int32, Int32)

    When implemented by a class, creates a new clipping region that consists of the existing clipping region minus the specified rectangle.

    FillGradient(Rectangle, Color, Color, Point, Point)

    When implemented by a class, fills the given rectangle with color that smoothly fades from one side to the other.

    FillGradient(Int32, Int32, Int32, Int32, Color, Color, Point, Point)

    When implemented by a class, fills the given rectangle with color that smoothly fades from one side to the other.

    FillPolygon(Color, Point[])

    When implemented by a class, fills the interior of a polygon defined by an array of points specified by Point structures.

    FillRectangle(Color, Rectangle)

    When implemented by a class, fills the given rectangle by using specified color.

    FillRectangle(Color, Int32, Int32, Int32, Int32)

    When implemented by a class, fills the given rectangle by using specified color.

    FillRectangle(Rectangle)

    When implemented by a class, fills the given rectangle by using the current brush.

    FillRectangle(Int32, Int32, Int32, Int32)

    When implemented by a class, fills the given rectangular area by using the current brush.

    FillRoundRectangle(Int32, Int32, Int32, Int32, Int32, Int32)

    When implemented by a class, fills a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush.

    IntersectClipRect(Rectangle)

    When implemented by a class, creates a new clipping region from the intersection of the current clipping region and the specified rectangle.

    IntersectClipRect(Int32, Int32, Int32, Int32)

    When implemented by a class, creates a new clipping region from the intersection of the current clipping region and the specified rectangle.

    RestoreClip(IntPtr)

    When implemented by a class, restores current clipping region from previously saved region.

    SaveClip(Rectangle)

    When implemented by a class, retrieves handle to clipping region saved from specified rectangle.

    StringWidth(String)

    When implemented by a class, returns width of the given string.

    StringWidth(String, Int32, Int32)

    When implemented by a class, returns width of the specified part of the given string.

    StringWidth(String, Int32, Int32, Int32, out Int32)

    When implemented by a class, returns width of the specified part of the given string fitting into the given Width.

    StringWidth(String, Int32, Int32, Int32, out Int32, Boolean)

    When implemented by a class, returns width of the specified part of the given string fitting into the given Width.

    StringWidth(String, Int32, out Int32, Boolean)

    When implemented by a class, returns width of the given string fitting into the given Width.

    TextOut(String, Int32, Rectangle)

    When implemented by a class, draws text within the specified rectangle.

    TextOut(String, Int32, Rectangle, Boolean, Boolean)

    When implemented by a class, draws text within the specified rectangle.

    TextOut(String, Int32, Rectangle, Int32, Int32, Boolean, Boolean)

    When implemented by a class, draws text within the specified rectangle.

    TextOut(String, Int32, Rectangle, Int32, Int32, Boolean, Boolean, Int32)

    When implemented by a class, draws text within the specified rectangle.

    TextOut(String, Int32, Int32, Int32)

    When implemented by a class, draws text in the specified location.

    TextOut(String, Int32, Int32, Int32, Boolean, Boolean)

    When implemented by a class, draws text in the specified location.

    Transform(Int32, Int32, Single, Single)

    When implemented by a class, sets a two-dimensional linear transformation for the specified device context.

    Inherited Members
    IDisposable.Dispose()
    In This Article
    Back to top Copyright AlterNET Software Download PDF