Skip to content

Commit 214d7b9

Browse files
authored
add language slugs (#11217)
1 parent 3830023 commit 214d7b9

11 files changed

+877
-902
lines changed

xml/System.Windows.Forms.Integration/WindowsFormsHost.xml

+21-21
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a name="xamlObjectElementUsage_WindowsFormsHost"></a>
6060
## XAML Object Element Usage
6161
62-
```
62+
```xaml
6363
<WindowsFormsHost.../>
6464
```
6565
@@ -168,8 +168,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
168168
<a name="xamlAttributeUsage_Background"></a>
169169
## XAML Attribute Usage
170170
171-
```
172-
<object Background="Brush"/>
171+
```xaml
172+
<object Background="Brush"/>
173173
```
174174
175175
<a name="xamlValues_Background"></a>
@@ -350,8 +350,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
350350
<a name="xamlAttributeUsage_ChildChanged"></a>
351351
## XAML Attribute Usage
352352
353-
```
354-
<object ChildChanged="eventHandler"/>
353+
```xaml
354+
<object ChildChanged="eventHandler"/>
355355
```
356356
357357
]]></format>
@@ -503,8 +503,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
503503
<a name="xamlAttributeUsage_FontFamily"></a>
504504
## XAML Attribute Usage
505505
506-
```
507-
<object FontFamily="fontFamily"/>
506+
```xaml
507+
<object FontFamily="fontFamily"/>
508508
```
509509
510510
<a name="xamlValues_FontFamily"></a>
@@ -589,8 +589,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
589589
<a name="xamlAttributeUsage_FontSize"></a>
590590
## XAML Attribute Usage
591591
592-
```
593-
<object FontSize="double"/>
592+
```xaml
593+
<object FontSize="double"/>
594594
```
595595
596596
<a name="xamlValues_FontSize"></a>
@@ -673,8 +673,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
673673
<a name="xamlAttributeUsage_FontStyle"></a>
674674
## XAML Attribute Usage
675675
676-
```
677-
<object FontStyle="fontStyle"/>
676+
```xaml
677+
<object FontStyle="fontStyle"/>
678678
```
679679
680680
<a name="xamlValues_FontStyle"></a>
@@ -758,8 +758,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
758758
<a name="xamlAttributeUsage_FontWeight"></a>
759759
## XAML Attribute Usage
760760
761-
```
762-
<object FontWeight="fontWeight"/>
761+
```xaml
762+
<object FontWeight="fontWeight"/>
763763
```
764764
765765
<a name="xamlValues_FontWeight"></a>
@@ -843,8 +843,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
843843
<a name="xamlAttributeUsage_Foreground"></a>
844844
## XAML Attribute Usage
845845
846-
```
847-
<object Foreground="Brush"/>
846+
```xaml
847+
<object Foreground="Brush"/>
848848
```
849849
850850
<a name="xamlValues_Foreground"></a>
@@ -936,8 +936,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
936936
<a name="xamlAttributeUsage_LayoutError"></a>
937937
## XAML Attribute Usage
938938
939-
```
940-
<object LayoutError="eventHandler"/>
939+
```xaml
940+
<object LayoutError="eventHandler"/>
941941
```
942942
943943
]]></format>
@@ -1096,8 +1096,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
10961096
<a name="xamlAttributeUsage_Padding"></a>
10971097
## XAML Attribute Usage
10981098
1099-
```
1100-
<object Padding="Thickness"/>
1099+
```xaml
1100+
<object Padding="Thickness"/>
11011101
```
11021102
11031103
<a name="xamlValues_Padding"></a>
@@ -1282,8 +1282,8 @@ The following code example demonstrates how to use a <xref:System.Windows.Forms.
12821282
<a name="xamlAttributeUsage_TabIndex"></a>
12831283
## XAML Attribute Usage
12841284
1285-
```
1286-
<object TabIndex="int"/>
1285+
```xaml
1286+
<object TabIndex="int"/>
12871287
```
12881288
12891289
<a name="dependencyPropertyInfo_TabIndex"></a>

xml/System.Windows.Forms/BindingContext.xml

+230-240
Large diffs are not rendered by default.

xml/System.Windows.Forms/ComboBox.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1754,9 +1754,9 @@
17541754
## Remarks
17551755
Starting with the .NET Framework 4.5.2, if the <xref:System.Windows.Forms.ComboBox.FlatStyle%2A> property is set to <xref:System.Windows.Forms.FlatStyle.Flat> or <xref:System.Windows.Forms.FlatStyle.Popup>, the drop-down arrow may be resized. Resizing is determined by the system DPI setting when the app.config file contains the following entry:
17561756
1757-
```
1757+
```xml
17581758
<appSettings>
1759-
  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
1759+
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
17601760
</appSettings>
17611761
```
17621762

xml/System.Windows.Forms/Control.xml

+9-14
Original file line numberDiff line numberDiff line change
@@ -5557,19 +5557,14 @@ The following table lists Windows Forms controls and which event (<xref:System.W
55575557
<format type="text/markdown"><![CDATA[
55585558

55595559
## Remarks
5560-
The <xref:System.Windows.Forms.DragEventArgs.X%2A> and <xref:System.Windows.Forms.DragEventArgs.Y%2A> properties of the <xref:System.Windows.Forms.DragEventArgs> are in screen coordinates, not client coordinates. The following line of Visual C# code converts the properties to a client <xref:System.Drawing.Point>.
5560+
The <xref:System.Windows.Forms.DragEventArgs.X%2A> and <xref:System.Windows.Forms.DragEventArgs.Y%2A> properties of the <xref:System.Windows.Forms.DragEventArgs> are in screen coordinates, not client coordinates. The following line of code converts the properties to a client <xref:System.Drawing.Point>.
55615561

5562-
```
5562+
```csharp
55635563
Point clientPoint = targetControl.PointToClient(new Point(de.X, de.Y));
55645564
```
55655565

5566-
> [!NOTE]
5567-
> In versions earlier than .NET Framework 2.0, if you put a <xref:System.Windows.Forms.UserControl> with <xref:System.Windows.Forms.Control.DragEnter> and <xref:System.Windows.Forms.Control.DragDrop> events on a Windows Form and drag and drop something onto the <xref:System.Windows.Forms.UserControl> at design time, the `DropDrop` and `DropEnter` events are raised. However, when you close and reopen the solution, the <xref:System.Windows.Forms.Control.DragEnter> and <xref:System.Windows.Forms.Control.DragDrop> events are not raised again.
5568-
55695566
For more information about handling events, see [Handling and Raising Events](/dotnet/standard/events/).
55705567

5571-
5572-
55735568
## Examples
55745569
This code excerpt demonstrates using the <xref:System.Windows.Forms.Control.DragDrop> event. See the <xref:System.Windows.Forms.Control.DoDragDrop%2A> method for the complete code example.
55755570

@@ -8488,7 +8483,7 @@ MyControl.Font = New Font(MyControl.Font, _
84888483
- If no parameters are passed, the sender parameter will contain this control and the event parameter will contain <xref:System.EventArgs.Empty?displayProperty=nameWithType>.
84898484
- When a single parameter is passed, the sender parameter will contain the first args element and the event parameter will contain <xref:System.EventArgs.Empty?displayProperty=nameWithType>.
84908485
- If more than one parameter is passed, the sender parameter will contain the first element from `args`, and the <xref:System.EventArgs> parameter will contain the second element.
8491-
8486+
84928487
A call to an <xref:System.EventHandler> or <xref:System.Windows.Forms.MethodInvoker> delegate will be faster than a call to another type of delegate.
84938488

84948489
> [!NOTE]
@@ -8575,11 +8570,11 @@ MyControl.Font = New Font(MyControl.Font, _
85758570
<returns>A task that represents the asynchronous invoke operation.</returns>
85768571
<remarks>
85778572
<para>
8578-
When you pass a <see cref="T:System.Threading.CancellationToken" /> to this method, the method will return, but the callback will still be executed.
8573+
When you pass a <see cref="T:System.Threading.CancellationToken" /> to this method, the method will return, but the callback will still be executed.
85798574
The callback will be running on the UI thread and will be also blocking the UI thread. <c>InvokeAsync</c> in this case is just queuing the callback to the end of the message queue and returns immediately, but as soon as the callback gets executed, it will still block the UI thread for the time it is running. For this reason, it is recommended to only execute short sync running operations in the callback, like updating a control's property or similar.
85808575
</para>
85818576
<para>
8582-
If you want to execute a long-running operation, consider using asynchronous callbacks instead, by making sure that you use either the overload <see cref="M:System.Windows.Forms.Control.InvokeAsync(System.Func{System.Threading.CancellationToken,System.Threading.Tasks.ValueTask},System.Threading.CancellationToken)" />
8577+
If you want to execute a long-running operation, consider using asynchronous callbacks instead, by making sure that you use either the overload <see cref="M:System.Windows.Forms.Control.InvokeAsync(System.Func{System.Threading.CancellationToken,System.Threading.Tasks.ValueTask},System.Threading.CancellationToken)" />
85838578
or <see cref="M:System.Windows.Forms.Control.InvokeAsync``1(System.Func{System.Threading.CancellationToken,System.Threading.Tasks.ValueTask{``0}},System.Threading.CancellationToken)" />.
85848579
</para>
85858580
</remarks>
@@ -8716,12 +8711,12 @@ MyControl.Font = New Font(MyControl.Font, _
87168711
<remarks>
87178712
<para>
87188713
When you pass a <see cref="T:System.Threading.CancellationToken" /> to this method, the method will return, but the callback will still be executed. The callback will be running on the UI thread and will be also blocking the UI thread.
8719-
InvokeAsync in this case is just queuing the callback to the end of the message queue and returns immediately, but as soon as the callback is executed, it will still block the UI for the time it is running. For this reason, it is recommended to only
8714+
InvokeAsync in this case is just queuing the callback to the end of the message queue and returns immediately, but as soon as the callback is executed, it will still block the UI for the time it is running. For this reason, it is recommended to only
87208715
execute short sync running operations in the callback, like updating a control's property or similar.
87218716
</para>
87228717
<para>If you want to execute a long-running operation, consider using asynchronous callbacks instead, which you use with the overloads of <c>InvokeAsync</c> described below.</para>
87238718
<para>
8724-
<b>Important:</b> Also note that if you use this overload to pass a callback which returns a <see cref="T:System.Threading.Tasks.Task" /> that this Task will NOT be awaited but return immediately and has the characteristics of an "engage-and-forget".
8719+
<b>Important:</b> Also note that if you use this overload to pass a callback which returns a <see cref="T:System.Threading.Tasks.Task" /> that this Task will NOT be awaited but return immediately and has the characteristics of an "engage-and-forget".
87258720
If you want the task which you pass to be awaited, make sure that you use either the overload <see cref="M:System.Windows.Forms.Control.InvokeAsync(System.Func{System.Threading.CancellationToken,System.Threading.Tasks.ValueTask},System.Threading.CancellationToken)" />
87268721
or <see cref="M:System.Windows.Forms.Control.InvokeAsync``1(System.Func{System.Threading.CancellationToken,System.Threading.Tasks.ValueTask{``0}},System.Threading.CancellationToken)" />.
87278722
</para>
@@ -17058,7 +17053,7 @@ if (CanSelect && IsMnemonic(charCode, MyControl.Text) {
1705817053
## Remarks
1705917054
The <xref:System.Windows.Forms.Control.ProductName%2A> property is a read-only property. To change the value of this property, set the <xref:System.Reflection.AssemblyProductAttribute.Product%2A> property value of the <xref:System.Reflection.AssemblyProductAttribute>. The following line of C# code sets the <xref:System.Windows.Forms.Control.ProductName%2A> property.
1706017055

17061-
```
17056+
```csharp
1706217057
[assembly: AssemblyProduct("MyApplication")]
1706317058
```
1706417059

@@ -17133,7 +17128,7 @@ if (CanSelect && IsMnemonic(charCode, MyControl.Text) {
1713317128
## Remarks
1713417129
The <xref:System.Windows.Forms.Control.ProductVersion%2A> property is a read-only property. To change the value of this property, set the <xref:System.Reflection.AssemblyVersionAttribute.Version%2A> property value of the <xref:System.Reflection.AssemblyVersionAttribute>. The following line of C# code sets the <xref:System.Windows.Forms.Control.ProductVersion%2A> property.
1713517130

17136-
```
17131+
```csharp
1713717132
[assembly: AssemblyVersion("1.0.1")]
1713817133
```
1713917134

0 commit comments

Comments
 (0)