diff --git a/xml/System.Drawing/RectangleF.xml b/xml/System.Drawing/RectangleF.xml index 32c08e691ac..23168cf8b74 100644 --- a/xml/System.Drawing/RectangleF.xml +++ b/xml/System.Drawing/RectangleF.xml @@ -67,11 +67,11 @@ Stores a set of four floating-point numbers that represent the location and size of a rectangle. For more advanced region functions, use a object. - @@ -161,15 +161,15 @@ A that represents the width and height of the rectangular region. Initializes a new instance of the class with the specified location and size. - , , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `ConvertRectangleToRectangleF` method when handling the form's event, passing `e` as . - + , , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `ConvertRectangleToRectangleF` method when handling the form's event, passing `e` as . + :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/CPP/form1.cpp" id="Snippet6"::: :::code language="csharp" source="~/snippets/csharp/System.Drawing/Brushes/Overview/form1.cs" id="Snippet6"::: - :::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet6"::: - + :::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet6"::: + ]]> @@ -228,15 +228,15 @@ The height of the rectangle. Initializes a new instance of the class with the specified location and size. - , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `RoundingAndTruncatingRectangles` method when handling the form's event, passing `e` as . - + , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `RoundingAndTruncatingRectangles` method when handling the form's event, passing `e` as . + :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/CPP/form1.cpp" id="Snippet5"::: :::code language="csharp" source="~/snippets/csharp/System.Drawing/Brushes/Overview/form1.cs" id="Snippet5"::: - :::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet5"::: - + :::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet5"::: + ]]> @@ -297,11 +297,11 @@ Gets the y-coordinate that is the sum of and of this structure. The y-coordinate that is the sum of and of this structure. - value represents the y-coordinate of the first point at the bottom edge of the rectangle that is not contained in the rectangle. - + value represents the y-coordinate of the first point at the bottom edge of the rectangle that is not contained in the rectangle. + ]]> @@ -527,11 +527,11 @@ Represents an instance of the class with its members uninitialized. - are left uninitialized. - + are left uninitialized. + ]]> @@ -708,11 +708,11 @@ Creates a structure with upper-left corner and lower-right corner at the specified locations. The new that this method creates. - with the specified upper-left and lower-right corners. - + with the specified upper-left and lower-right corners. + ]]> @@ -882,20 +882,20 @@ The amount to inflate this rectangle. Enlarges this by the specified amount. - e, an OnPaint event object. The code creates a and draws it to the screen in black. Notice that it has to be converted to a for drawing purposes. Then the code enlarges the , again converts it to a , and draws it to the screen in red. Notice that the original (black) rectangle is expanded in both directions along the x-axis by 100 points. - + e, an OnPaint event object. The code creates a and draws it to the screen in black. Notice that it has to be converted to a for drawing purposes. Then the code enlarges the , again converts it to a , and draws it to the screen in red. Notice that the original (black) rectangle is expanded in both directions along the x-axis by 100 points. + :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.ClassicRectangleFExamples/CPP/form1.cpp" id="Snippet1"::: :::code language="csharp" source="~/snippets/csharp/System.Drawing/RectangleF/Inflate/form1.cs" id="Snippet1"::: - :::code language="vb" source="~/snippets/visualbasic/System.Drawing/RectangleF/Inflate/form1.vb" id="Snippet1"::: - + :::code language="vb" source="~/snippets/visualbasic/System.Drawing/RectangleF/Inflate/form1.vb" id="Snippet1"::: + ]]> @@ -948,13 +948,13 @@ The amount to inflate this structure vertically. Enlarges this structure by the specified amount. - is deflated in the corresponding direction. - + is deflated in the corresponding direction. + ]]> @@ -1009,11 +1009,11 @@ Creates and returns an enlarged copy of the specified structure. The copy is enlarged by the specified amount and the original rectangle remains unmodified. The enlarged . - @@ -1123,15 +1123,15 @@ Returns a structure that represents the intersection of two rectangles. If there is no intersection, and empty is returned. A third structure the size of which represents the overlapped area of the two specified rectangles. - `e`, an event object. The code creates two objects and draws them to the screen in black and red. Notice that they have to be converted to objects for drawing purposes. Then the code creates a third using the method, converts it to a , and draws it to the screen in blue. Notice the third (blue) rectangle is the area of overlap of the other two rectangles: - + `e`, an event object. The code creates two objects and draws them to the screen in black and red. Notice that they have to be converted to objects for drawing purposes. Then the code creates a third using the method, converts it to a , and draws it to the screen in blue. Notice the third (blue) rectangle is the area of overlap of the other two rectangles: + :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.ClassicRectangleFExamples/CPP/form1.cpp" id="Snippet2"::: :::code language="csharp" source="~/snippets/csharp/System.Drawing/RectangleF/Inflate/form1.cs" id="Snippet2"::: - :::code language="vb" source="~/snippets/visualbasic/System.Drawing/RectangleF/Inflate/form1.vb" id="Snippet2"::: - + :::code language="vb" source="~/snippets/visualbasic/System.Drawing/RectangleF/Inflate/form1.vb" id="Snippet2"::: + ]]> @@ -1518,15 +1518,15 @@ if the two specified structures have equal , , , and properties; otherwise, . - , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `ConvertRectangleToRectangleF` method when handling the form's event, passing `e` as . - + , , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `ConvertRectangleToRectangleF` method when handling the form's event, passing `e` as . + :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/CPP/form1.cpp" id="Snippet6"::: :::code language="csharp" source="~/snippets/csharp/System.Drawing/Brushes/Overview/form1.cs" id="Snippet6"::: - :::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet6"::: - + :::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet6"::: + ]]> @@ -1647,13 +1647,16 @@ Converts the specified structure to a structure. The structure that is converted from the specified structure. - , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `ConvertRectangleToRectangleF` method when handling the form's event, passing `e` as . - - System.Drawing.RectanglesAndPoints#6 - + , , and members. This example is designed for use with a Windows Form. Paste this code into a form and call the `ConvertRectangleToRectangleF` method when handling the form's event, passing `e` as . + +:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/CPP/form1.cpp" id="Snippet6"::: +:::code language="csharp" source="~/snippets/csharp/System.Drawing/Brushes/Overview/form1.cs" id="Snippet6"::: +:::code language="vb" source="~/snippets/visualbasic/System.Drawing/Brushes/Overview/form1.vb" id="Snippet6"::: + ]]> @@ -1765,11 +1768,11 @@ Gets the x-coordinate that is the sum of and of this structure. The x-coordinate that is the sum of and of this structure. - value represents the x-coordinate of the first point at the right edge of the rectangle that is not contained in the rectangle. - + value represents the x-coordinate of the first point at the right edge of the rectangle that is not contained in the rectangle. + ]]> @@ -2022,20 +2025,20 @@ Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. A third structure that contains both of the two rectangles that form the union. - method returns a rectangle with a starting point of (0, 0), and the height and width of the non-empty rectangle. For example, if you have two rectangles A = (0, 0; 0, 0) and B = (1, 1; 2, 2), then the union of A and B is (0, 0; 2, 2). - - - -## Examples - This example is designed for use with Windows Forms, and it requires e, an event object. The code creates two s and draws them to the screen in black and red. Notice that they have to be converted to s for drawing purposes. Then the code creates a third using the method, converts it to a , and draws it to the screen in blue. Notice the third (blue) rectangle is the smallest possible rectangle that can contain both of the other two rectangles: - + method returns a rectangle with a starting point of (0, 0), and the height and width of the non-empty rectangle. For example, if you have two rectangles A = (0, 0; 0, 0) and B = (1, 1; 2, 2), then the union of A and B is (0, 0; 2, 2). + + + +## Examples + This example is designed for use with Windows Forms, and it requires e, an event object. The code creates two s and draws them to the screen in black and red. Notice that they have to be converted to s for drawing purposes. Then the code creates a third using the method, converts it to a , and draws it to the screen in blue. Notice the third (blue) rectangle is the smallest possible rectangle that can contain both of the other two rectangles: + :::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.ClassicRectangleFExamples/CPP/form1.cpp" id="Snippet3"::: :::code language="csharp" source="~/snippets/csharp/System.Drawing/RectangleF/Inflate/form1.cs" id="Snippet3"::: - :::code language="vb" source="~/snippets/visualbasic/System.Drawing/RectangleF/Inflate/form1.vb" id="Snippet3"::: - + :::code language="vb" source="~/snippets/visualbasic/System.Drawing/RectangleF/Inflate/form1.vb" id="Snippet3"::: + ]]>