Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
</ReturnValue>
<MemberValue>7</MemberValue>
<Docs>
<summary>[Supported in the .NET Framework 4.5.1 and later versions] The domain is operating in Windows Server 2012 R2 mode.</summary>
<summary>The domain is operating in Windows Server 2012 R2 mode.</summary>
</Docs>
</Member>
<Member MemberName="Windows8Domain">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
</ReturnValue>
<MemberValue>6</MemberValue>
<Docs>
<summary>[Supported in the .NET Framework 4.5.1 and later versions] The <see cref="T:System.DirectoryServices.ActiveDirectory.Forest" /> is operating in Windows Server 2012 R2 mode.</summary>
<summary>The <see cref="T:System.DirectoryServices.ActiveDirectory.Forest" /> is operating in Windows Server 2012 R2 mode.</summary>
</Docs>
</Member>
<Member MemberName="Windows8Forest">
Expand Down
11 changes: 2 additions & 9 deletions xml/System.DirectoryServices/DirectoryEntry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,8 @@ public class PrintChildren{
</ReturnValue>
<Docs>
<summary>Gets or sets the type of authentication to use.</summary>
<value>One of the <see cref="T:System.DirectoryServices.AuthenticationTypes" /> values.</value>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
Prior to .NET Framework 2.0, the default value is <xref:System.DirectoryServices.AuthenticationTypes.None>. Beginning with .NET Framework 2.0, the default value is <xref:System.DirectoryServices.AuthenticationTypes.Secure>.

]]></format>
</remarks>
<value>One of the <see cref="T:System.DirectoryServices.AuthenticationTypes" /> values. The default is <see cref="F:System.DirectoryServices.AuthenticationTypes.Secure" />.</value>
<remarks>To be added.</remarks>
<altmember cref="T:System.DirectoryServices.AuthenticationTypes" />
</Docs>
</Member>
Expand Down
18 changes: 0 additions & 18 deletions xml/System.Drawing.Design/UITypeEditor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -493,15 +493,6 @@
## Remarks
Editors should paint within the boundaries of the specified rectangle. This rectangle indicates the area of the Properties window to draw a representation of the value within.

Starting with the .NET Framework 4.6, the rectangle specified by <xref:System.Drawing.Design.PaintValueEventArgs.Bounds*> will be resized based on the system DPI setting when the app.config file contains the following entry:

```
<appSettings>
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</appSettings>

```

]]></format>
</remarks>
<altmember cref="T:System.ComponentModel.ITypeDescriptorContext" />
Expand Down Expand Up @@ -559,15 +550,6 @@
## Remarks
Editors should paint within the boundaries of the specified rectangle. This rectangle indicates the area of the Properties window to draw a representation of the value within.

Starting with the .NET Framework 4.6, the rectangle specified by <xref:System.Drawing.Design.PaintValueEventArgs.Bounds*> will be resized based on the system DPI setting when the app.config file contains the following entry:

```
<appSettings>
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</appSettings>

```

]]></format>
</remarks>
</Docs>
Expand Down
2 changes: 1 addition & 1 deletion xml/System.Drawing.Imaging/Metafile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<format type="text/markdown"><![CDATA[

## Remarks
When you use the <xref:System.Drawing.Image.Save*> method to save a graphic image as a Windows Metafile Format (WMF) or Enhanced Metafile Format (EMF) file, the resulting file is saved as a Portable Network Graphics (PNG) file instead. This behavior occurs because the GDI+ component of the .NET Framework does not have an encoder that you can use to save files as .wmf or .emf files.
When you use the <xref:System.Drawing.Image.Save*> method to save a graphic image as a Windows Metafile Format (WMF) or Enhanced Metafile Format (EMF) file, the resulting file is saved as a Portable Network Graphics (PNG) file instead. This behavior occurs because the GDI+ component of .NET does not have an encoder that you can use to save files as .wmf or .emf files.

[!INCLUDE[System.Drawing.Common note](~/includes/system-drawing-common.md)]

Expand Down
4 changes: 2 additions & 2 deletions xml/System.Drawing.Printing/PrintController.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@

<xref:System.Drawing.Printing.PrintController> is used by <xref:System.Drawing.Printing.PrintDocument>, and not typically used directly.

The .NET Framework includes three print controllers that are derived from <xref:System.Drawing.Printing.PrintController> that help accomplish common tasks. The <xref:System.Drawing.Printing.StandardPrintController> prints a document to a printer. The <xref:System.Drawing.Printing.PreviewPrintController> generates a preview of what the document will look like when printed and is used by the <xref:System.Windows.Forms.PrintPreviewControl> and <xref:System.Windows.Forms.PrintPreviewDialog> classes. The <xref:System.Windows.Forms.PrintControllerWithStatusDialog> provides a printing status dialog during the printing process.
.NET includes three print controllers that are derived from <xref:System.Drawing.Printing.PrintController> that help accomplish common tasks. The <xref:System.Drawing.Printing.StandardPrintController> prints a document to a printer. The <xref:System.Drawing.Printing.PreviewPrintController> generates a preview of what the document will look like when printed and is used by the <xref:System.Windows.Forms.PrintPreviewControl> and <xref:System.Windows.Forms.PrintPreviewDialog> classes. The <xref:System.Windows.Forms.PrintControllerWithStatusDialog> provides a printing status dialog during the printing process.

For more information about printing with Windows Forms, see the <xref:System.Drawing.Printing> namespace overview. If you wish to print from a Windows Presentation Foundation application, see the <xref:System.Printing> namespace.
For more information about printing with Windows Forms, see the <xref:System.Drawing.Printing> namespace overview. If you want to print from a Windows Presentation Foundation application, see the <xref:System.Printing> namespace.

]]></format>
</remarks>
Expand Down
45 changes: 5 additions & 40 deletions xml/System.Drawing.Printing/PrintingPermission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,7 @@
<Docs>
<param name="state">One of the <see cref="T:System.Security.Permissions.PermissionState" /> values.</param>
<summary>Initializes a new instance of the <see cref="T:System.Drawing.Printing.PrintingPermission" /> class with either fully restricted or unrestricted access, as specified.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
This constructor creates either the fully restricted (`None`) or the `Unrestricted` form of the permission.

]]></format>
</remarks>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="state" /> is not a valid <see cref="T:System.Security.Permissions.PermissionState" />.</exception>
</Docs>
Expand Down Expand Up @@ -176,14 +169,7 @@
<Docs>
<summary>Creates and returns an identical copy of the current permission object.</summary>
<returns>A copy of the current permission object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
A copy of the permission object represents the same access to resources as the original permission object.

]]></format>
</remarks>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="FromXml">
Expand Down Expand Up @@ -260,14 +246,7 @@
<param name="target">A permission object of the same type as the current permission object.</param>
<summary>Creates and returns a permission that is the intersection of the current permission object and a target permission object.</summary>
<returns>A new permission object that represents the intersection of the current object and the specified target. This object is <see langword="null" /> if the intersection is empty.</returns>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
The intersection of two permissions is a permission that describes the set of operations they both hold in common. Specifically, it represents the minimum permissions required for a demand to pass both permissions.

]]></format>
</remarks>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="target" /> is an object that is not of the same type as the current permission object.</exception>
</Docs>
Expand Down Expand Up @@ -352,14 +331,7 @@
<summary>Gets a value indicating whether the permission is unrestricted.</summary>
<returns>
<see langword="true" /> if permission is unrestricted; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
An unrestricted permission object represents access to any and all resources protected by the permission.

]]></format>
</remarks>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Level">
Expand Down Expand Up @@ -470,14 +442,7 @@
<param name="target">A permission object of the same type as the current permission object.</param>
<summary>Creates a permission that combines the permission object and the target permission object.</summary>
<returns>A new permission object that represents the union of the current permission object and the specified permission object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
The result of a call to <xref:System.Security.Permissions.UIPermission.Union*> is a permission that represents all the operations represented by the current permission object, and all the operations represented by the specified permission object.

]]></format>
</remarks>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="target" /> is an object that is not of the same type as the current permission object.</exception>
</Docs>
Expand Down
6 changes: 2 additions & 4 deletions xml/System.Drawing.Printing/PrintingPermissionAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@
<Docs>
<summary>Allows declarative printing permission checks.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
<format type="text/markdown"><![CDATA[

## Remarks

[!INCLUDE[cas-deprecated](~/includes/cas-deprecated.md)]

For more information about using attributes, see [Attributes](/dotnet/standard/attributes/).

]]></format>
</remarks>
</Docs>
Expand Down
5 changes: 0 additions & 5 deletions xml/System.Drawing/Bitmap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@

[!INCLUDE[System.Drawing.Common note](~/includes/system-drawing-common.md)]

> [!NOTE]
> The <xref:System.Drawing.Bitmap> class is not accessible across application domains. For example, if you create a dynamic <xref:System.AppDomain> and create several brushes, pens, and bitmaps in that domain, then pass these objects back to the main application domain, you can successfully use the pens and brushes. However, if you call the <xref:System.Drawing.Graphics.DrawImage*> method to draw the marshaled <xref:System.Drawing.Bitmap>, you receive the following exception:
>
> **Remoting cannot find field "native image" on type "System.Drawing.Image".**

## Examples
The following code example demonstrates how to construct a new <xref:System.Drawing.Bitmap> from a file, using the <xref:System.Drawing.Bitmap.GetPixel*> and <xref:System.Drawing.Bitmap.SetPixel*> methods to recolor the image. It also uses the <xref:System.Drawing.Image.PixelFormat*>, <xref:System.Drawing.Image.Width*>, and <xref:System.Drawing.Image.Height*> properties.

Expand Down
2 changes: 1 addition & 1 deletion xml/System.Drawing/BufferedGraphics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
> [!NOTE]
> The simplest way to use double buffering is to set the <xref:System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer> control style flag on a control using the <xref:System.Windows.Forms.Control.SetStyle*> method. Setting the <xref:System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer> flag for a control redirects all painting for the control through a default graphics buffer, without requiring any additional code. This flag is set to `true` by default.

The <xref:System.Drawing.BufferedGraphics> class has no public constructor and must be created by the <xref:System.Drawing.BufferedGraphicsContext> for an application domain using its <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method. You can retrieve the <xref:System.Drawing.BufferedGraphicsContext> for the current application domain from the static <xref:System.Drawing.BufferedGraphicsManager.Current?displayProperty=nameWithType> property.
The <xref:System.Drawing.BufferedGraphics> class has no public constructor and must be created by the <xref:System.Drawing.BufferedGraphicsContext> using its <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method. You can retrieve the <xref:System.Drawing.BufferedGraphicsContext> from the static <xref:System.Drawing.BufferedGraphicsManager.Current?displayProperty=nameWithType> property.

The <xref:System.Drawing.BufferedGraphics.Graphics> property can be used for drawing to the graphics buffer. This property provides access to the <xref:System.Drawing.Graphics> object that draws to the graphics buffer allocated for this <xref:System.Drawing.BufferedGraphics> object.

Expand Down
12 changes: 4 additions & 8 deletions xml/System.Drawing/BufferedGraphicsContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@

The <xref:System.Drawing.BufferedGraphicsContext> class provides methods for creating and configuring a graphics buffer. The <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method creates a <xref:System.Drawing.BufferedGraphics>, which is a wrapper for a graphics buffer that also provides methods you can use to write to the buffer and render its contents to an output device.

You can retrieve the <xref:System.Drawing.BufferedGraphicsContext> for the current application domain from the static <xref:System.Drawing.BufferedGraphicsManager.Current?displayProperty=nameWithType> property. For graphically intensive applications such as animation, you can create a dedicated <xref:System.Drawing.BufferedGraphicsContext> using the constructor, but for most applications the <xref:System.Drawing.BufferedGraphicsManager.Current?displayProperty=nameWithType> property will be sufficient.
You can retrieve the <xref:System.Drawing.BufferedGraphicsContext> from the static <xref:System.Drawing.BufferedGraphicsManager.Current?displayProperty=nameWithType> property. For graphically intensive applications such as animation, you can create a dedicated <xref:System.Drawing.BufferedGraphicsContext> using the constructor, but for most applications the <xref:System.Drawing.BufferedGraphicsManager.Current?displayProperty=nameWithType> property will be sufficient.

For more information on drawing buffered graphics and custom buffering implementations, see [Double Buffered Graphics](/dotnet/desktop/winforms/advanced/double-buffered-graphics) and [How to: Manually Manage Buffered Graphics](/dotnet/desktop/winforms/advanced/how-to-manually-manage-buffered-graphics).

## Examples
The following code example demonstrates how to acquire the <xref:System.Drawing.BufferedGraphicsContext> for the current application domain. This code is part of a larger example provided for the <xref:System.Drawing.BufferedGraphics> class.
The following code example demonstrates how to acquire the <xref:System.Drawing.BufferedGraphicsContext>. This code is part of a larger example provided for the <xref:System.Drawing.BufferedGraphics> class.

:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/BufferingExamples/CPP/bufferingexamples.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Drawing/BufferedGraphics/Render/bufferingexamples.cs" id="Snippet1":::
Expand Down Expand Up @@ -169,9 +169,7 @@
<format type="text/markdown"><![CDATA[

## Remarks
When you call the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method with a rectangle whose size exceeds the value of the <xref:System.Drawing.BufferedGraphicsContext.MaximumBuffer> property, a temporary <xref:System.Drawing.BufferedGraphicsContext> is created to allocate the buffer and provide a temporary context for the buffer. The new <xref:System.Drawing.BufferedGraphicsContext> is distinct from the <xref:System.Drawing.BufferedGraphicsContext> for the application domain and it is disposed automatically when the <xref:System.Drawing.BufferedGraphics> returned by the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method is disposed.


When you call the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method with a rectangle whose size exceeds the value of the <xref:System.Drawing.BufferedGraphicsContext.MaximumBuffer> property, a temporary <xref:System.Drawing.BufferedGraphicsContext> is created to allocate the buffer and provide a temporary context for the buffer. The new <xref:System.Drawing.BufferedGraphicsContext> is distinct from the current <xref:System.Drawing.BufferedGraphicsContext> and it is disposed automatically when the <xref:System.Drawing.BufferedGraphics> returned by the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method is disposed.

## Examples
The following code example demonstrates creating a graphics buffer using the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method. This code is part of a larger example provided for the <xref:System.Drawing.BufferedGraphics> class.
Expand Down Expand Up @@ -229,9 +227,7 @@
<format type="text/markdown"><![CDATA[

## Remarks
When you call the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method with a rectangle whose size exceeds the value of the <xref:System.Drawing.BufferedGraphicsContext.MaximumBuffer> property, a temporary <xref:System.Drawing.BufferedGraphicsContext> is created to allocate the buffer and provide a temporary context for the buffer. The new <xref:System.Drawing.BufferedGraphicsContext> is distinct from the <xref:System.Drawing.BufferedGraphicsContext> for the application domain and it is disposed automatically when the <xref:System.Drawing.BufferedGraphics> returned by the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method is disposed.


When you call the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method with a rectangle whose size exceeds the value of the <xref:System.Drawing.BufferedGraphicsContext.MaximumBuffer> property, a temporary <xref:System.Drawing.BufferedGraphicsContext> is created to allocate the buffer and provide a temporary context for the buffer. The new <xref:System.Drawing.BufferedGraphicsContext> is distinct from the current <xref:System.Drawing.BufferedGraphicsContext> and it is disposed automatically when the <xref:System.Drawing.BufferedGraphics> returned by the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method is disposed.

## Examples
The following code example demonstrates creating a graphics buffer using the <xref:System.Drawing.BufferedGraphicsContext.Allocate*> method. This code is part of a larger example provided for the <xref:System.Drawing.BufferedGraphics> class.
Expand Down
Loading
Loading