System.Drawing.Rectangle Structure
Information   Base Types   Related Resources

Stores the location and size of a rectangular region. For more advanced region functions, use a Region object.

  • Namespace: System.Drawing
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Drawing.dll

  • System.ValueType
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (22)Discussions (429)MembersRotorChanges
    Articles

    Page: 1
    A Docking Control That Can Be Dragged And Resized by the User
    The Code Project
    One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form. Now I could attach a Control (or more likely a composite control by deriving from UserControl) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences.
    An XML based dynamic runtime GUI generator
    The Code Project
    Generate controls, set property values, and wire up event handlers at runtime from an XML definition.
    C# Form Sizing
    C# Help
    A form, sizing itself to the borders of the screen working area. I subscribed this article because I had a little problem when I wanted to make my form take the whole free screen working area.
    Create Snazzy Web Charts and Graphics On the Fly with the .NET Framework
    MSDN
    Knowledge workers can understand data more effectively when raw numbers are presented in a graphical format. This is especially true when displaying database information on a Web page, where a simple chart can make the difference between a dry presentation and a vivid data source. In the past, creating dynamic, data-based charts on the fly in ASP required purchasing a third-party, image-generating COM component. Now with ASP.NET, developers can access the .NET Framework's drawing classes directly with C# to create dynamic images and charts.
    Creating a custom DataGridColumnStyle in C#
    C#Today
    The .NET framework provides many unique controls like the DataGrid, which is a data bound list control that displays the items from a data source in a table. The DataGrid is the most powerful and flexible control in the .NET toolbox. In this article, Chad DePue takes a look at one aspect of the DataGrids flexibility, by creating a custom column. The DataGrid provides two types of columns for free, the DataGridTextBoxColumn and the DataGridBoolColumn, but there are many types of data that wont fit into either of these two column types. In the example given, we want to search a directory for icon (.ICO) files and display each icon as a row in the DataGrid. Neither of the existing column styles will do this for us, so we create our own.
    Dancing Particles: Adding Points, Lines, Fonts, and Input to the Managed Graphics Library
    MSDN
    Learn to add points, lines, and more to the managed graphics library using GAPI and the Dancing Zombie sample.
    Dancing Zombies: Adding Bitmaps to the Managed Graphics Library
    MSDN
    Learn how to load and display bitmaps, animated bitmaps, key transparency, and more using GAPI and the Dancing Rectangles sample.
    Developing A C# Vector Drawing Application - Part 2
    C#Today
    This is the second part of a series where we build a vector based drawing application. In Part 1, Budi Kurniawan outlined the specification for the application and discussed some techniques for working with forms with the .NET Framework Base Class Library. In this part, we will continue with our development, first by discussing the various shapes for our drawing application and then writing event handling for some of the controls.
    Dockable Control In C#
    C# Help
    edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences.
    Docking Control
    C# Corner
    One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form. Now I could attach a Control (or more likely a composite control by deriving from UserControl) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences.
    FakeFlash Title
    The Code Project
    Animated Title Component
    How to sum the fields in a Windows Forms DataGrid control and display the calculated totals in a footer by using Visual C# .NET
    http://www.kbalertz.com/
    (842290) - Explains how to calculate the sums of the values in the columns of a Windows Forms DataGrid control and display these sums in a footer. Requires knowledge of Visual C# .NET.
    How to sum the fields in a Windows Forms DataGrid control and display the calculated totals in a footer by using Visual C# .NET
    http://www.kbalertz.com/
    (842290) - Explains how to calculate the sums of the values in the columns of a Windows Forms DataGrid control and display these sums in a footer. Requires knowledge of Visual C# .NET.
    How to sum the fields in a Windows Forms DataGrid control and then display the calculated totals in a footer by using Visual Basic .NET
    http://www.kbalertz.com/
    (836672) - Explains how to calculate the sums of the values in the columns of a Windows Forms DataGrid control and display these sums in a footer. Requires knowledge of Visual Basic .NET.
    Introduction to GDI+
    GotDotNet
    GotDotNet's introduction to GDI+. Extract: "The common language runtime takes advantage of an advanced version of the Windows graphics device interface (GDI) called GDI+. GDI+ is designed to provide high performance and ease of use. It supports 2-D graphics, typography, and imaging. "
    Owner Draw Combo Box
    C# Help
    In the case where visual part of the control needs to be handled from your program, you can achieve this by using the OwnerDraw property of the control.
    OwnerDraw Menu Items in C#
    C# Help
    Windows applications, which focuses mainly on its GUI aspects , can make use of the ownerdraw properties of the various forms components. Once such component that allows us to define our own drawing and painting of items is the Menu component of Windows Forms.
    Refactoring C# Code Using Visual Studio 2005
    MSDN
    This article examines the role of code refactoring, and the refactoring techniques supported by Visual Studio .NET 2005.
    Thread Pools
    C#Today
    Using threads makes your multitasking applications run more smoothly. However, it takes finite resources to create and destory threads, resources we can save if we use thread pooling. In this article, Matthew Reynolds looks at how to use the thread pool in .NET. We see how to build a demo application that shows the typical model used in service applications i.e. a client connects, a client requests some work be done and then the client disconnects.
    Why DragDrop event is not fired on the Client
    The Code Project
    Why DragDrop event is not fired on the Client
    Windows Forms Charting - Adding Interactivity
    C#Today
    In this second part of his GDI+ Windows Forms demonstration, Matthew Reynolds adds some more functionality to the charting control built last time. Specifically, he adds some interactivity to the chart by allowing the user to examine the underlying data values of the bars, and also change these values by grabbing hold of the top of the bar and making the bar either bigger or smaller.
    Windows Forms Charting - Drawing Charts
    C#Today
    GDI+ is the latest version of Windows Graphic Device Interface, which is the part of Windows that abstracts commands like draw a window, draw a line, etc. into commands that our video driver can understand in order to display images on our computers screen. Weve already seen some of the advanced GDI+ features available to us in Matthew Reynolds' 'Irregular Shaped Forms and Other Cool GDI+ Features' article. In this article Matt looks at some of the more basic features and builds a simple user control that can draw a 3D bar chart. In Part 2, we continue the development of the chart, making it user-interactive.
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com