Skip to content
Merged
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
6 changes: 3 additions & 3 deletions xml/System.Windows.Forms/ItemCheckEventArgs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


## Examples
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemCheck?displayProperty=nameWithType> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A> properties of the <xref:System.Windows.Forms.ItemCheckEventArgs> object to retrieve and tally the price of the menu items selected. To run this example paste the following code in a form containing a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InititalizeListView` method from the form's constructor or `Load` method. Ensure all events are associated with their event-handling methods.
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemCheck?displayProperty=nameWithType> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A> properties of the <xref:System.Windows.Forms.ItemCheckEventArgs> object to retrieve and tally the price of the menu items selected. To run this example paste the following code in a form containing a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InitializeListView` method from the form's constructor or `Load` method. Ensure all events are associated with their event-handling methods.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down Expand Up @@ -115,7 +115,7 @@


## Examples
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemChecked?displayProperty=nameWithType> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A> properties of the <xref:System.Windows.Forms.ItemCheckEventArgs> object to retrieve and tally the price of the menu items selected. To run this example paste the following code in a form containing a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InititalizeListView` method from the form's constructor or `Load` method. Ensure all events are associated with their event-handling methods.
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemChecked?displayProperty=nameWithType> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A> properties of the <xref:System.Windows.Forms.ItemCheckEventArgs> object to retrieve and tally the price of the menu items selected. To run this example paste the following code in a form containing a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InitializeListView` method from the form's constructor or `Load` method. Ensure all events are associated with their event-handling methods.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down Expand Up @@ -163,7 +163,7 @@


## Examples
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemChecked?displayProperty=nameWithType> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A> properties of the <xref:System.Windows.Forms.ItemCheckEventArgs> object to retrieve and tally the price of the menu items selected. To run this example paste the following code in a form containing a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InititalizeListView` method from the form's constructor or `Load` method. Ensure all events are associated with their event-handling methods.
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemChecked?displayProperty=nameWithType> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A> properties of the <xref:System.Windows.Forms.ItemCheckEventArgs> object to retrieve and tally the price of the menu items selected. To run this example paste the following code in a form containing a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InitializeListView` method from the form's constructor or `Load` method. Ensure all events are associated with their event-handling methods.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down
8 changes: 4 additions & 4 deletions xml/System.Windows.Forms/ListView.xml
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@


## Examples
The following code example demonstrates initializing a <xref:System.Windows.Forms.ListView> control to contain check boxes. It also demonstrates how to use the <xref:System.Windows.Forms.ListView.BeginUpdate%2A> and <xref:System.Windows.Forms.ListView.EndUpdate%2A> methods. To run this example, paste the following code into a form that contains a <xref:System.Windows.Forms.ListView> named `ListView1`. Call the `InititalizeListView` method from the form's constructor or `Load` method.
The following code example demonstrates initializing a <xref:System.Windows.Forms.ListView> control to contain check boxes. It also demonstrates how to use the <xref:System.Windows.Forms.ListView.BeginUpdate%2A> and <xref:System.Windows.Forms.ListView.EndUpdate%2A> methods. To run this example, paste the following code into a form that contains a <xref:System.Windows.Forms.ListView> named `ListView1`. Call the `InitializeListView` method from the form's constructor or `Load` method.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down Expand Up @@ -1087,7 +1087,7 @@


## Examples
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> that handles the <xref:System.Windows.Forms.ListView.ItemChecked> event. The example uses the <xref:System.Windows.Forms.ListView.CheckedItems%2A> property to tally a new price every time that an item is checked or unchecked. To run this example, paste the following code into a form that contains a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InititalizeListView` method from the form's constructor or `Load` method.
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> that handles the <xref:System.Windows.Forms.ListView.ItemChecked> event. The example uses the <xref:System.Windows.Forms.ListView.CheckedItems%2A> property to tally a new price every time that an item is checked or unchecked. To run this example, paste the following code into a form that contains a <xref:System.Windows.Forms.ListView> named `ListView1` and a <xref:System.Windows.Forms.TextBox> named `Textbox1`. Call the `InitializeListView` method from the form's constructor or `Load` method.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down Expand Up @@ -1722,7 +1722,7 @@


## Examples
The following code example demonstrates initializing a <xref:System.Windows.Forms.ListView> control to contain check boxes. It also demonstrates using the <xref:System.Windows.Forms.ListView.BeginUpdate%2A> and <xref:System.Windows.Forms.ListView.EndUpdate%2A> methods. To run this example, paste the following code into a form containing a <xref:System.Windows.Forms.ListView> named `ListView1`. Call the `InititalizeListView` method from the form's constructor or `Load` method.
The following code example demonstrates initializing a <xref:System.Windows.Forms.ListView> control to contain check boxes. It also demonstrates using the <xref:System.Windows.Forms.ListView.BeginUpdate%2A> and <xref:System.Windows.Forms.ListView.EndUpdate%2A> methods. To run this example, paste the following code into a form containing a <xref:System.Windows.Forms.ListView> named `ListView1`. Call the `InitializeListView` method from the form's constructor or `Load` method.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down Expand Up @@ -2849,7 +2849,7 @@


## Examples
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemCheck> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A?displayProperty=nameWithType> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A?displayProperty=nameWithType> properties to retrieve and tally the price of the menu items selected. To run this example, paste the following code into a form containing a `ListView` named `ListView1` and a `TextBox` named `Textbox1`. Call the `InititalizeListView` method from the form's constructor or `Load` method. Ensure that the <xref:System.Windows.Forms.ListView.ItemCheck> event is associated with the event handler in this example.
The following code example demonstrates a checked <xref:System.Windows.Forms.ListView> control that handles the <xref:System.Windows.Forms.ListView.ItemCheck> event. The method uses the <xref:System.Windows.Forms.ItemCheckEventArgs.CurrentValue%2A?displayProperty=nameWithType> and <xref:System.Windows.Forms.ItemCheckEventArgs.Index%2A?displayProperty=nameWithType> properties to retrieve and tally the price of the menu items selected. To run this example, paste the following code into a form containing a `ListView` named `ListView1` and a `TextBox` named `Textbox1`. Call the `InitializeListView` method from the form's constructor or `Load` method. Ensure that the <xref:System.Windows.Forms.ListView.ItemCheck> event is associated with the event handler in this example.

[!code-cpp[System.Windows.Forms.ListView2#1](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp#1)]
[!code-csharp[System.Windows.Forms.ListView2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CS/form1.cs#1)]
Expand Down
6 changes: 3 additions & 3 deletions xml/System/Char.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2282,7 +2282,7 @@ When a managed <xref:System.Char> type, which is represented as a Unicode UTF-16
<format type="text/markdown"><![CDATA[

## Remarks
Valid punctuation marks are members of the following categories in <xref:System.Globalization.UnicodeCategory>: `ConnectorPunctuation`, `DashPunctuation`, `OpenPunctuation`, `ClosePunctuation`, `InititalQuotePunctuation`, `FinalQuotePunctuation`, or `OtherPunctuation`. They include characters with the Unicode code points listed in the following table.
Valid punctuation marks are members of the following categories in <xref:System.Globalization.UnicodeCategory>: `ConnectorPunctuation`, `DashPunctuation`, `OpenPunctuation`, `ClosePunctuation`, `InitialQuotePunctuation`, `FinalQuotePunctuation`, or `OtherPunctuation`. They include characters with the Unicode code points listed in the following table.

|||||
|-|-|-|-|
Expand Down Expand Up @@ -2358,7 +2358,7 @@ When a managed <xref:System.Char> type, which is represented as a Unicode UTF-16
<format type="text/markdown"><![CDATA[

## Remarks
Valid punctuation marks are members of the following categories in <xref:System.Globalization.UnicodeCategory>: `ConnectorPunctuation`, `DashPunctuation`, `OpenPunctuation`, `ClosePunctuation`, `InititalQuotePunctuation`, `FinalQuotePunctuation`, or `OtherPunctuation`. They include characters with the Unicode code points listed in the following table.
Valid punctuation marks are members of the following categories in <xref:System.Globalization.UnicodeCategory>: `ConnectorPunctuation`, `DashPunctuation`, `OpenPunctuation`, `ClosePunctuation`, `InitialQuotePunctuation`, `FinalQuotePunctuation`, or `OtherPunctuation`. They include characters with the Unicode code points listed in the following table.

|||||
|-|-|-|-|
Expand Down Expand Up @@ -2453,7 +2453,7 @@ When a managed <xref:System.Char> type, which is represented as a Unicode UTF-16
## Remarks
Character positions in a string are indexed starting from zero.

Valid punctuation marks are members of the following categories in <xref:System.Globalization.UnicodeCategory>: `ConnectorPunctuation`, `DashPunctuation`, `OpenPunctuation`, `ClosePunctuation`, `InititalQuotePunctuation`, `FinalQuotePunctuation`, or `OtherPunctuation`. They include characters with the Unicode code points listed in the following table.
Valid punctuation marks are members of the following categories in <xref:System.Globalization.UnicodeCategory>: `ConnectorPunctuation`, `DashPunctuation`, `OpenPunctuation`, `ClosePunctuation`, `InitialQuotePunctuation`, `FinalQuotePunctuation`, or `OtherPunctuation`. They include characters with the Unicode code points listed in the following table.

|||||
|-|-|-|-|
Expand Down