Skip to content

Commit 27b1325

Browse files
authored
update links (#9788)
1 parent 9a1b865 commit 27b1325

File tree

5 files changed

+40
-37
lines changed

5 files changed

+40
-37
lines changed

xml/System.Drawing.Drawing2D/LineCap.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@
2929
<Docs>
3030
<summary>Specifies the available cap styles with which a <see cref="T:System.Drawing.Pen" /> object can end a line.</summary>
3131
<remarks>
32-
<format type="text/markdown"><![CDATA[
33-
34-
## Remarks
35-
You can draw the start or end of a line in one of several shapes called line caps. GDI+ supports several line caps, such as round, square, diamond, and arrowhead. The following illustration shows a line with a round cap and an arrow cap.
36-
37-
![Pens](~/add/media/pens4.gif "Pens")
38-
39-
40-
41-
## Examples
42-
The following example draws a line with an arrowhead at one end and a round cap at the other end. To run this example, Create a Windows Form and handle the form's <xref:System.Windows.Forms.Control.Paint> event. Paste the example code into the <xref:System.Windows.Forms.Control.Paint> event handler passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
43-
32+
<format type="text/markdown"><![CDATA[
33+
34+
## Remarks
35+
You can draw the start or end of a line in one of several shapes called line caps. GDI+ supports several line caps, such as round, square, diamond, and arrowhead. The following illustration shows a line with a round cap and an arrow cap.
36+
37+
![Pens](~/add/media/pens4.gif "Pens")
38+
39+
40+
41+
## Examples
42+
The following example draws a line with an arrowhead at one end and a round cap at the other end. To run this example, Create a Windows Form and handle the form's <xref:System.Windows.Forms.Control.Paint> event. Paste the example code into the <xref:System.Windows.Forms.Control.Paint> event handler passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
43+
4444
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Rectangle/Overview/Class1.cs" id="Snippet71":::
45-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.UsingAPen/VB/Class1.vb" id="Snippet71":::
46-
45+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.UsingAPen/VB/Class1.vb" id="Snippet71":::
46+
4747
]]></format>
4848
</remarks>
49-
<related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
49+
<related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
5050
</Docs>
5151
<Members>
5252
<Member MemberName="AnchorMask">

xml/System.Drawing/Brushes.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@
4848
4949
## Remarks
5050
51-
The <xref:System.Drawing.Brushes> class contains `static` read-only properties that return a <xref:System.Drawing.Brush> object of the color indicated by the property name. You typically do not have to explicitly dispose of the brush returned by a property in this class, unless it is used to construct a new brush. For more information about the colors represented by the brushes in this class, see [List of colors by name](https://www.colorhexa.com/color-names).
51+
The <xref:System.Drawing.Brushes> class contains `static` read-only properties that return a <xref:System.Drawing.Brush> object of the color indicated by the property name. You typically do not have to explicitly dispose of the brush returned by a property in this class, unless it is used to construct a new brush. For more information about the colors represented by the brushes in this class, see [List of colors by name](/uwp/api/windows.ui.colors#remarks).
5252
5353
[!INCLUDE[System.Drawing.Common note](~/includes/system-drawing-common.md)]
5454
5555
## Examples
56-
The following code example demonstrates the how to use a member of the <xref:System.Drawing.Brushes> class to fill a <xref:System.Drawing.Rectangle>. This example should be used with a Windows Form. Paste this code into a form and call this method when handling the form's <xref:System.Windows.Forms.Control.Paint> event, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
5756
58-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/CPP/form1.cpp" id="Snippet2":::
59-
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Brushes/Overview/form1.cs" id="Snippet2":::
60-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/VB/form1.vb" id="Snippet2":::
57+
The following code example demonstrates the how to use a member of the <xref:System.Drawing.Brushes> class to fill a <xref:System.Drawing.Rectangle>. This example should be used with a Windows Form. Paste this code into a form and call this method when handling the form's <xref:System.Windows.Forms.Control.Paint> event, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
58+
59+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/CPP/form1.cpp" id="Snippet2":::
60+
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Brushes/Overview/form1.cs" id="Snippet2":::
61+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.RectanglesAndPoints/VB/form1.vb" id="Snippet2":::
6162
6263
]]></format>
6364
</remarks>

xml/System.Drawing/Color.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,17 @@ Named colors are represented by using the properties of the <xref:System.Drawing
115115
116116
The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). Each of the four components is a number from 0 through 255, with 0 representing no intensity and 255 representing full intensity. The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. To determine the alpha, red, green, or blue component of a color, use the <xref:System.Drawing.Color.A%2A>, <xref:System.Drawing.Color.R%2A>, <xref:System.Drawing.Color.G%2A>, or <xref:System.Drawing.Color.B%2A> property, respectively. You can create a custom color by using one of the <xref:System.Drawing.Color.FromArgb%2A> methods.
117117
118-
For more information about these colors, see [List of colors by name](https://www.colorhexa.com/color-names).
118+
For more information about these colors, see [List of colors by name](/uwp/api/windows.ui.colors#remarks).
119119
120120
## Examples
121-
The following code example demonstrates the <xref:System.Drawing.Color.A%2A>, <xref:System.Drawing.Color.R%2A>, <xref:System.Drawing.Color.G%2A>, and <xref:System.Drawing.Color.B%2A> properties of a <xref:System.Drawing.Color>, and the <xref:System.Drawing.Size.op_Implicit%2A> member.
122121
123-
This example is designed to be used with a Windows Form. Paste the code into the form and call the `ShowPropertiesOfSlateBlue` method from the form's <xref:System.Windows.Forms.Control.Paint> event-handling method, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
122+
The following code example demonstrates the <xref:System.Drawing.Color.A%2A>, <xref:System.Drawing.Color.R%2A>, <xref:System.Drawing.Color.G%2A>, and <xref:System.Drawing.Color.B%2A> properties of a <xref:System.Drawing.Color>, and the <xref:System.Drawing.Size.op_Implicit%2A> member.
124123
125-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.PointsAndSizes/CPP/form1.cpp" id="Snippet3":::
126-
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Color/Overview/form1.cs" id="Snippet3":::
127-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.PointsAndSizes/VB/form1.vb" id="Snippet3":::
124+
This example is designed to be used with a Windows Form. Paste the code into the form and call the `ShowPropertiesOfSlateBlue` method from the form's <xref:System.Windows.Forms.Control.Paint> event-handling method, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
125+
126+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.PointsAndSizes/CPP/form1.cpp" id="Snippet3":::
127+
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Color/Overview/form1.cs" id="Snippet3":::
128+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.PointsAndSizes/VB/form1.vb" id="Snippet3":::
128129
129130
]]></format>
130131
</remarks>

xml/System.Drawing/Graphics.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
You can obtain a <xref:System.Drawing.Graphics> object by calling the <xref:System.Windows.Forms.Control.CreateGraphics%2A?displayProperty=nameWithType> method on an object that inherits from <xref:System.Windows.Forms.Control?displayProperty=nameWithType>, or by handling a control's <xref:System.Windows.Forms.Control.Paint?displayProperty=nameWithType> event and accessing the <xref:System.Windows.Forms.PaintEventArgs.Graphics%2A> property of the <xref:System.Windows.Forms.PaintEventArgs?displayProperty=nameWithType> class. You can also create a <xref:System.Drawing.Graphics> object from an image by using the <xref:System.Drawing.Graphics.FromImage%2A> method. For more information about creating a <xref:System.Drawing.Graphics> object, see [How to: Create Graphics Objects for Drawing](/dotnet/framework/winforms/advanced/how-to-create-graphics-objects-for-drawing).
6868

69-
You can draw many different shapes and lines by using a <xref:System.Drawing.Graphics> object. For more information about how to draw lines and shapes, see the specific `Draw`*GraphicalElement* method for the line or shape you want to draw. These methods include <xref:System.Drawing.Graphics.DrawLine%2A>, <xref:System.Drawing.Graphics.DrawArc%2A>, <xref:System.Drawing.Graphics.DrawClosedCurve%2A>, <xref:System.Drawing.Graphics.DrawPolygon%2A>, and <xref:System.Drawing.Graphics.DrawRectangle%2A>. For more information about how to draw lines and shapes, see [Using a Pen to Draw Lines and Shapes](/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes) and [Using a Brush to Fill Shapes](/dotnet/framework/winforms/advanced/using-a-brush-to-fill-shapes).
69+
You can draw many different shapes and lines by using a <xref:System.Drawing.Graphics> object. For more information about how to draw lines and shapes, see the specific `Draw`*GraphicalElement* method for the line or shape you want to draw. These methods include <xref:System.Drawing.Graphics.DrawLine%2A>, <xref:System.Drawing.Graphics.DrawArc%2A>, <xref:System.Drawing.Graphics.DrawClosedCurve%2A>, <xref:System.Drawing.Graphics.DrawPolygon%2A>, and <xref:System.Drawing.Graphics.DrawRectangle%2A>. For more information about how to draw lines and shapes, see [Using a Pen to Draw Lines and Shapes](/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes) and [Using a Brush to Fill Shapes](/dotnet/framework/winforms/advanced/using-a-brush-to-fill-shapes).
7070

7171
You can also draw images and icons by using the <xref:System.Drawing.Graphics.DrawImage%2A> and <xref:System.Drawing.Graphics.DrawIcon%2A> methods, respectively. To perform a bit-block transfer of color data from the screen to the drawing surface of the <xref:System.Drawing.Graphics> object, see <xref:System.Drawing.Graphics.CopyFromScreen%2A>. For more information about how to draw images with a <xref:System.Drawing.Graphics> object, see [Working with Images, Bitmaps, Icons, and Metafiles](/dotnet/desktop/winforms/advanced/images-bitmaps-and-metafiles).
7272

@@ -7015,7 +7015,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
70157015
</remarks>
70167016
<exception cref="T:System.ArgumentNullException">
70177017
<paramref name="pen" /> is <see langword="null" />.</exception>
7018-
<related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
7018+
<related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
70197019
</Docs>
70207020
</Member>
70217021
<Member MemberName="DrawLine">
@@ -7085,7 +7085,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
70857085
</remarks>
70867086
<exception cref="T:System.ArgumentNullException">
70877087
<paramref name="pen" /> is <see langword="null" />.</exception>
7088-
<related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
7088+
<related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
70897089
</Docs>
70907090
</Member>
70917091
<Member MemberName="DrawLine">
@@ -7157,7 +7157,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
71577157
</remarks>
71587158
<exception cref="T:System.ArgumentNullException">
71597159
<paramref name="pen" /> is <see langword="null" />.</exception>
7160-
<related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
7160+
<related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
71617161
</Docs>
71627162
</Member>
71637163
<Member MemberName="DrawLine">
@@ -7229,7 +7229,7 @@ The <see cref="T:System.Drawing.Graphics" /> object has a transform applied othe
72297229
</remarks>
72307230
<exception cref="T:System.ArgumentNullException">
72317231
<paramref name="pen" /> is <see langword="null" />.</exception>
7232-
<related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
7232+
<related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
72337233
</Docs>
72347234
</Member>
72357235
<MemberGroup MemberName="DrawLines">

xml/System.Drawing/Pens.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,21 @@
4848
4949
## Remarks
5050
51-
The <xref:System.Drawing.Pen> objects returned by this class are immutable, meaning their properties cannot be changed. To see the colors represented by the pens in this class, see [List of colors by name](https://www.colorhexa.com/color-names).
51+
The <xref:System.Drawing.Pen> objects returned by this class are immutable, meaning their properties cannot be changed. For the colors represented by the pens in this class, see [List of colors by name](/uwp/api/windows.ui.colors#remarks).
5252
5353
[!INCLUDE[System.Drawing.Common note](~/includes/system-drawing-common.md)]
5454
5555
## Examples
56-
The following method demonstrates how to use the <xref:System.Drawing.Pens> class. This example is designed to be used with Windows Forms. Paste the code into a form and call the `UsePensClass` method when handling the form's <xref:System.Windows.Forms.Control.Paint> event, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
5756
58-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.PensExample/CPP/form1.cpp" id="Snippet4":::
59-
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Graphics/SmoothingMode/form1.cs" id="Snippet4":::
60-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.PensExample/VB/form1.vb" id="Snippet4":::
57+
The following method demonstrates how to use the <xref:System.Drawing.Pens> class. This example is designed to be used with Windows Forms. Paste the code into a form and call the `UsePensClass` method when handling the form's <xref:System.Windows.Forms.Control.Paint> event, passing `e` as <xref:System.Windows.Forms.PaintEventArgs>.
58+
59+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Drawing.PensExample/CPP/form1.cpp" id="Snippet4":::
60+
:::code language="csharp" source="~/snippets/csharp/System.Drawing/Graphics/SmoothingMode/form1.cs" id="Snippet4":::
61+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.PensExample/VB/form1.vb" id="Snippet4":::
6162
6263
]]></format>
6364
</remarks>
64-
<related type="Article" href="/dotnet/framework/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
65+
<related type="Article" href="/dotnet/desktop/winforms/advanced/using-a-pen-to-draw-lines-and-shapes">Using a Pen to Draw Lines and Shapes</related>
6566
</Docs>
6667
<Members>
6768
<Member MemberName="AliceBlue">

0 commit comments

Comments
 (0)