Skip to content

Commit 8039bfc

Browse files
Potapy4Ron Petrusha
authored andcommitted
[winforms] Refactoring redundant path (dotnet#11053)
* Remove redundant URL path in winforms folder * Fix samples URL in winforms folder * Fix subfolders URL in winforms folder * Remove redundant URL path in advanced folder * Fix samples URL in advanced folder * Fix subfolders URL in advanced folder * Remove redundant URL path in controls folder * Removed redundant URL path in controls folder * Fix samples URL in controls folder * Fix subfolders URL in controls folder
1 parent 0cc4768 commit 8039bfc

File tree

787 files changed

+4692
-4696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

787 files changed

+4692
-4696
lines changed

docs/framework/winforms/additional-security-considerations-in-windows-forms.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ helpviewer_keywords:
99
ms.assetid: 15abda8b-0527-47c7-aedb-77ab595f2bf1
1010
---
1111
# Additional Security Considerations in Windows Forms
12-
[!INCLUDE[dnprdnshort](../../../includes/dnprdnshort-md.md)] security settings might cause your application to run differently in a partial trust environment than on your local computer. The [!INCLUDE[dnprdnshort](../../../includes/dnprdnshort-md.md)] restricts access to such critical local resources as the file system, network, and unmanaged APIs, among other things. The security settings affect the ability to call the Microsoft Win32 API or other APIs that cannot be verified by the security system. Security also affects other aspects of your application, including file and data access, and printing. For more information about file and data access in a partial trust environment, see [More Secure File and Data Access in Windows Forms](../../../docs/framework/winforms/more-secure-file-and-data-access-in-windows-forms.md). For more information about printing in a partial trust environment, see [More Secure Printing in Windows Forms](../../../docs/framework/winforms/more-secure-printing-in-windows-forms.md).
12+
[!INCLUDE[dnprdnshort](../../../includes/dnprdnshort-md.md)] security settings might cause your application to run differently in a partial trust environment than on your local computer. The [!INCLUDE[dnprdnshort](../../../includes/dnprdnshort-md.md)] restricts access to such critical local resources as the file system, network, and unmanaged APIs, among other things. The security settings affect the ability to call the Microsoft Win32 API or other APIs that cannot be verified by the security system. Security also affects other aspects of your application, including file and data access, and printing. For more information about file and data access in a partial trust environment, see [More Secure File and Data Access in Windows Forms](more-secure-file-and-data-access-in-windows-forms.md). For more information about printing in a partial trust environment, see [More Secure Printing in Windows Forms](more-secure-printing-in-windows-forms.md).
1313

1414
The following sections discuss how to work with the Clipboard, perform window manipulation, and call the Win32 API from applications that are running in a partial trust environment.
1515

@@ -80,11 +80,11 @@ ms.assetid: 15abda8b-0527-47c7-aedb-77ab595f2bf1
8080

8181
If your application does not have permission to call unmanaged code, your application must request <xref:System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode> permission, or you must consider alternative ways of implementing features; in many cases, Windows Forms provides a managed alternative to Win32 API functions. If no alternative means exist and the application must access unmanaged code, you will have to elevate the permissions for the application.
8282

83-
Permission to call unmanaged code allows an application to perform most anything. Therefore, permission to call unmanaged code should only be granted for applications that come from a trusted source. Alternatively, depending on the application, the piece of application functionality that makes the call to unmanaged code could be optional, or enabled in the full trust environment only. For more information about dangerous permissions, see [Dangerous Permissions and Policy Administration](../../../docs/framework/misc/dangerous-permissions-and-policy-administration.md). For more information about elevating permissions, see [General Security Policy Administration](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/ed5htz45(v=vs.100)).
83+
Permission to call unmanaged code allows an application to perform most anything. Therefore, permission to call unmanaged code should only be granted for applications that come from a trusted source. Alternatively, depending on the application, the piece of application functionality that makes the call to unmanaged code could be optional, or enabled in the full trust environment only. For more information about dangerous permissions, see [Dangerous Permissions and Policy Administration](../misc/dangerous-permissions-and-policy-administration.md). For more information about elevating permissions, see [General Security Policy Administration](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/ed5htz45(v=vs.100)).
8484

8585
## See also
86-
- [More Secure File and Data Access in Windows Forms](../../../docs/framework/winforms/more-secure-file-and-data-access-in-windows-forms.md)
87-
- [More Secure Printing in Windows Forms](../../../docs/framework/winforms/more-secure-printing-in-windows-forms.md)
88-
- [Security in Windows Forms Overview](../../../docs/framework/winforms/security-in-windows-forms-overview.md)
89-
- [Windows Forms Security](../../../docs/framework/winforms/windows-forms-security.md)
86+
- [More Secure File and Data Access in Windows Forms](more-secure-file-and-data-access-in-windows-forms.md)
87+
- [More Secure Printing in Windows Forms](more-secure-printing-in-windows-forms.md)
88+
- [Security in Windows Forms Overview](security-in-windows-forms-overview.md)
89+
- [Windows Forms Security](windows-forms-security.md)
9090
- [Securing ClickOnce Applications](/visualstudio/deployment/securing-clickonce-applications)

docs/framework/winforms/adjusting-the-size-and-scale-of-windows-forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This topic provides links to information about resizing Windows Forms.
1717
[Automatic Scaling in Windows Forms](~/docs/framework/winforms/automatic-scaling-in-windows-forms.md)
1818
Discusses how automatic scaling enables a form and its controls to be displayed appropriately between machines.
1919

20-
[High DPI Support in Windows Forms](../../../docs/framework/winforms/high-dpi-support-in-windows-forms.md)
20+
[High DPI Support in Windows Forms](high-dpi-support-in-windows-forms.md)
2121
Discusses Windows Forms' support for High DPI and dynamic scaling.
2222

2323
## Reference

docs/framework/winforms/advanced/about-gdi-managed-code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ ms.assetid: a98a76ab-e455-49c9-891c-0491ac932f2c
1515
This section provides information about the [!INCLUDE[ndptecgdiplus](../../../../includes/ndptecgdiplus-md.md)] API for programmers using managed code.
1616

1717
## In This Section
18-
[Lines, Curves, and Shapes](../../../../docs/framework/winforms/advanced/lines-curves-and-shapes.md)
18+
[Lines, Curves, and Shapes](lines-curves-and-shapes.md)
1919
Discusses vector graphics.
2020

21-
[Images, Bitmaps, and Metafiles](../../../../docs/framework/winforms/advanced/images-bitmaps-and-metafiles.md)
21+
[Images, Bitmaps, and Metafiles](images-bitmaps-and-metafiles.md)
2222
Discusses the type of images available and how to work with them.
2323

24-
[Coordinate Systems and Transformations](../../../../docs/framework/winforms/advanced/coordinate-systems-and-transformations.md)
24+
[Coordinate Systems and Transformations](coordinate-systems-and-transformations.md)
2525
Discusses how to transform graphics with [!INCLUDE[ndptecgdiplus](../../../../includes/ndptecgdiplus-md.md)].
2626

2727
## Reference
@@ -53,5 +53,5 @@ ms.assetid: a98a76ab-e455-49c9-891c-0491ac932f2c
5353
Describes this class and has links to all its members.
5454

5555
## Related Sections
56-
[Using Managed Graphics Classes](../../../../docs/framework/winforms/advanced/using-managed-graphics-classes.md).
56+
[Using Managed Graphics Classes](using-managed-graphics-classes.md).
5757
Contains links to topics that demonstrate how to use the `Graphics` programming interface.

docs/framework/winforms/advanced/alpha-blending-lines-and-fills.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ In [!INCLUDE[ndptecgdiplus](../../../../includes/ndptecgdiplus-md.md)], a color
2424
150 × 200 / 255 + 100 × (255 – 200) / 255 = 139
2525

2626
## In This Section
27-
[How to: Draw Opaque and Semitransparent Lines](../../../../docs/framework/winforms/advanced/how-to-draw-opaque-and-semitransparent-lines.md)
27+
[How to: Draw Opaque and Semitransparent Lines](how-to-draw-opaque-and-semitransparent-lines.md)
2828
Shows how to draw alpha-blended lines.
2929

30-
[How to: Draw with Opaque and Semitransparent Brushes](../../../../docs/framework/winforms/advanced/how-to-draw-with-opaque-and-semitransparent-brushes.md)
30+
[How to: Draw with Opaque and Semitransparent Brushes](how-to-draw-with-opaque-and-semitransparent-brushes.md)
3131
Explains how to alpha-blend with brushes.
3232

33-
[How to: Use Compositing Mode to Control Alpha Blending](../../../../docs/framework/winforms/advanced/how-to-use-compositing-mode-to-control-alpha-blending.md)
33+
[How to: Use Compositing Mode to Control Alpha Blending](how-to-use-compositing-mode-to-control-alpha-blending.md)
3434
Describes how to control alpha blending using <xref:System.Drawing.Drawing2D.CompositingMode>.
3535

36-
[How to: Use a Color Matrix to Set Alpha Values in Images](../../../../docs/framework/winforms/advanced/how-to-use-a-color-matrix-to-set-alpha-values-in-images.md)
36+
[How to: Use a Color Matrix to Set Alpha Values in Images](how-to-use-a-color-matrix-to-set-alpha-values-in-images.md)
3737
Explains how to use a <xref:System.Drawing.Imaging.ColorMatrix> object to control alpha blending.

docs/framework/winforms/advanced/antialiasing-with-lines-and-curves.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ When you use [!INCLUDE[ndptecgdiplus](../../../../includes/ndptecgdiplus-md.md)]
1616
## Aliasing
1717
Consider the straight red line that goes from the point (4, 2) to the point (16, 10). Assume the coordinate system has its origin in the upper-left corner and that the unit of measure is the pixel. Also assume that the x-axis points to the right and the y-axis points down. The following illustration shows an enlarged view of the red line drawn on a multicolored background.
1818

19-
![Line, no antialiasing](../../../../docs/framework/winforms/advanced/media/aboutgdip02-art33.gif "AboutGdip02_Art33")
19+
![Line, no antialiasing](./media/aboutgdip02-art33.gif "AboutGdip02_Art33")
2020

2121
The red pixels used to render the line are opaque. There are no partially transparent pixels in the line. This type of line rendering gives the line a jagged appearance, and the line looks somewhat like a staircase. This technique of representing a line with a staircase is called aliasing; the staircase is an alias for the theoretical line.
2222

2323
## Antialiasing
2424
A more sophisticated technique for rendering a line involves using partially transparent pixels along with opaque pixels. Pixels are set to pure red, or to some blend of red and the background color, depending on how close they are to the line. This type of rendering is called antialiasing and results in a line that the human eye perceives as more smooth. The following illustration shows how certain pixels are blended with the background to produce an antialiased line.
2525

26-
![Antialiasing a Line](../../../../docs/framework/winforms/advanced/media/aboutgdip02-art34.gif "AboutGdip02_Art34")
26+
![Antialiasing a Line](./media/aboutgdip02-art34.gif "AboutGdip02_Art34")
2727

2828
Antialiasing, also called smoothing, can also be applied to curves. The following illustration shows an enlarged view of a smoothed ellipse.
2929

30-
![Antialiasing Curves](../../../../docs/framework/winforms/advanced/media/aboutgdip02-art35.gif "AboutGdip02_Art35")
30+
![Antialiasing Curves](./media/aboutgdip02-art35.gif "AboutGdip02_Art35")
3131

3232
The following illustration shows the same ellipse in its actual size, once without antialiasing and once with antialiasing.
3333

34-
![Antialiasing example](../../../../docs/framework/winforms/advanced/media/aboutgdip02-art36.gif "AboutGdip02_Art36")
34+
![Antialiasing example](./media/aboutgdip02-art36.gif "AboutGdip02_Art36")
3535

3636
To draw lines and curves that use antialiasing, create an instance of the <xref:System.Drawing.Graphics> class and set its <xref:System.Drawing.Graphics.SmoothingMode%2A> property to <xref:System.Drawing.Drawing2D.SmoothingMode.AntiAlias> or <xref:System.Drawing.Drawing2D.SmoothingMode.HighQuality>. Then call one of the drawing methods of that same <xref:System.Drawing.Graphics> class.
3737

38-
[!code-csharp[LinesCurvesAndShapes#81](../../../../samples/snippets/csharp/VS_Snippets_Winforms/LinesCurvesAndShapes/CS/Class1.cs#81)]
39-
[!code-vb[LinesCurvesAndShapes#81](../../../../samples/snippets/visualbasic/VS_Snippets_Winforms/LinesCurvesAndShapes/VB/Class1.vb#81)]
38+
[!code-csharp[LinesCurvesAndShapes#81](~/samples/snippets/csharp/VS_Snippets_Winforms/LinesCurvesAndShapes/CS/Class1.cs#81)]
39+
[!code-vb[LinesCurvesAndShapes#81](~/samples/snippets/visualbasic/VS_Snippets_Winforms/LinesCurvesAndShapes/VB/Class1.vb#81)]
4040

4141
## See also
4242
- <xref:System.Drawing.Drawing2D.SmoothingMode?displayProperty=nameWithType>
43-
- [Lines, Curves, and Shapes](../../../../docs/framework/winforms/advanced/lines-curves-and-shapes.md)
44-
- [How to: Use Antialiasing with Text](../../../../docs/framework/winforms/advanced/how-to-use-antialiasing-with-text.md)
43+
- [Lines, Curves, and Shapes](lines-curves-and-shapes.md)
44+
- [How to: Use Antialiasing with Text](how-to-use-antialiasing-with-text.md)

0 commit comments

Comments
 (0)