ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class
Properties Methods


In This Topic
    DeviceContext Class Members
    In This Topic

    The following tables list the members exposed by DeviceContext.

    Public Properties
     NameDescription
    Public PropertyGets or sets the color of the background of the device context.  
    Public PropertyGets or sets the background mode of the device context.  
    Public PropertyGets or sets the drawing direction of the circle shapes.  
    Public PropertyGets or sets the handle of the current clipping region of the device context.  
    Public PropertyGets or sets the color of the foreground of the device context.  
    Public PropertyGets or sets a GraphicsMode indicating whether use the world transform in this DC.  
    Public PropertyGets or [protected] sets the handle of the device context.  
    Public PropertyGets or sets the mapping mode of the device context.  
    Public PropertyGets the number of pixels per logical inch along the screen width. In a system with multiple display monitors, this value is the same for all monitors.  
    Public PropertyGets the number of pixels per logical inch along the screen height. In a system with multiple display monitors, this value is the same for all monitors.  
    Public PropertyGet or set the current foreground mix mode.GDI uses the foreground mix mode to combine pens and interiors of filled objects with the colors already on the screen. The foreground mix mode defines how colors from the brush or pen and the colors in the existing image are to be combined.  
    Public PropertyGets or sets the text-alignment flags for this device context.  
    Public PropertyGets or sets the current intercharacter spacing for the device context.  
    Public PropertyGets or sets the x-extent and y-extent of the current viewport for the device context.  
    Public PropertyGets or sets the x-coordinates and y-coordinates of the viewport origin for the device context  
    Public PropertyGets or sets the x-extent and y-extent of the current window for the device context.  
    Public PropertyGets or sets the x-coordinates and y-coordinates of the window origin for the device context  
    Public PropertyGets or sets the world transform.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Displays bitmaps that have transparent or semitransparent pixels.  
    Public MethodClips the device context by the specified rectangle and operation mode.  
    Public MethodOverloaded. Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source DeviceContext object into a destination DeviceContext object.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public Methodstatic (Shared in Visual Basic)Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.  
    Public MethodOverloaded. Releases all resources used by this DeviceContext object.  
    Public MethodOverloaded. Draws a line segment and an arc. The line segment is drawn from the position which is defined by radius and startAngle. The arc is drawn along the perimeter of a circle with the given radius and center. The length of the arc is defined by the given start and sweep angles.  
    Public MethodDraws the special line by using the current pen of the device context.  
    Public MethodDraws one or more Bezier curves.  
    Public MethodDraws a series of line segments by connecting the points in the specified array.  
    Public MethodDraws formatted text in the specified rectangle.  
    Public MethodOverloaded. Gradient fills the rectangle with colors.  
    Public MethodFills the region by the specified brush.  
    Public MethodDraws a border around the specified region by using the specified brush.  
    Public MethodGradient fills the triangle with specified colors.  
    Public MethodRetrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device. The visible area is defined by the current clipping region or clip path, as well as any overlapping windows.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public Methodretrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.  
    Public Methodretrieves the foreground mix mode of the specified device context. The mix mode specifies how the pen or interior color and the color already on the screen are combined to yield a new color.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodInverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the rectangle's interior.  
    Public MethodInverts the colors in the specified region.  
    Public MethodDraws formatted text in the specified rectangle.  
    Public MethodPaints a chord (a region bounded by the intersection of an ellipse and a line segment, called a secant). The chord is outlined by using the current pen and filled by using the current brush.  
    Public MethodPaints an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.  
    Public MethodPaints a pie-shaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush.  
    Public MethodPaints a polygon consisting of two or more vertices connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode.  
    Public MethodDraw the special rectangle by using the current pen of the device context and fill the rectangle by using the current brush of the device context.  
    Public MethodPaints a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush.  
    Public Methodconverts device coordinates into logical coordinates. The conversion depends on the mapping mode of the device context, the settings of the origins and extents for the window and viewport, and the world transformation.  
    Public Methodconverts logical coordinates into device coordinates. The conversion depends on the mapping mode of the device context, the settings of the origins and extents for the window and viewport, and the world transformation.  
    Public MethodRestores the state of this C1.Framework.Drawing.Gdi.Graphics object to the state represented by a handle.  
    Public MethodSaves the current state of this C1.Framework.Drawing.Gdi.Graphics object and identifies the saved state with a handle.  
    Public MethodModifies the viewport for a device context using the ratios formed by the specified multiplicands and divisors.  
    Public MethodModifies the window for a device context using the ratios formed by the specified multiplicands and divisors.  
    Public MethodSelects an object into the specified device context(DC). The new object replaces the previous object of the same type.  
    Public MethodSets the color of the background of the device context.  
    Public MethodSets the background mode of the device context.  
    Public MethodSets the drawing direction of the circle shapes.  
    Public MethodCombines the specified region with the current clipping region using the specified mode.  
    Public MethodSets the color of the foreground of the device context.  
    Public MethodSets the pixel at the specified coordinates to the closest approximation of the specified color. The point must be in the clipping region and the visible part of the device surface.  
    Public MethodSets the current foreground mix mode. GDI uses the foreground mix mode to combine pens and interiors of filled objects with the colors already on the screen. The foreground mix mode defines how colors from the brush or pen and the colors in the existing image are to be combined.  
    Public MethodSets the text-alignment flags for this device context.  
    Public MethodSets the current intercharacter spacing for the device context.  
    Public MethodSpecifies the amount of space the system should add to the break characters in a string of text. The space is added when an application calls the TextOut method.  
    Public MethodThe TabbedTextExtent method computes the width and height of a character string.If the string contains one or more tab characters, the width of the string is based upon the specified tab stops. The TabbedTextExtent method uses the currently selected font to compute the dimensions of the string.  
    Public MethodWrites a character string at a specified location, expanding tabs to the values specified in an array of tab-stop positions. Text is written in the currently selected font, background color, and text color.  
    Public MethodComputes the width and height of the specified string of text.  
    Public MethodRetrieves the number of characters in a specified string that will fit within a specified space and fills an array with the text extent for each of those characters.  
    Public MethodWrites a character string at the specified location, using the currently selected font, background color, and text color.  
    Public MethodMoves the clipping region of a device context by the specified offsets.  
    Public MethodModifies the viewport origin for a device context using the specified horizontal and vertical offsets.  
    Public MethodModifies the window origin for a device context using the specified horizontal and vertical offsets.  
    Top
    Protected Methods
     NameDescription
    Protected MethodAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  
    Protected MethodGets the drawing direction of the circle shapes.  
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Top
    See Also