Skip to content

Commit d57ec9b

Browse files
authored
Update InputLanguage.xml
Fix example description.
1 parent 5075761 commit d57ec9b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

xml/System.Windows.Forms/InputLanguage.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,8 @@
403403
<remarks>
404404
<format type="text/markdown"><![CDATA[
405405
406-
## Examples
407-
The following code example gets the culture associated with the current input language and displays the culture name.
408-
409-
First, <xref:System.Windows.Forms.InputLanguage.CurrentInputLanguage%2A> is called to get the current input language. Then, <xref:System.Windows.Forms.InputLanguage.Culture%2A> is called to get the culture information for this input language. Finally, <xref:System.Globalization.CultureInfo.EnglishName%2A> is retrieved and displayed in a text box.
406+
## Examples
407+
First, <xref:System.Windows.Forms.InputLanguage.CurrentInputLanguage%2A> is called to get the current input language. Then, <xref:System.Windows.Forms.InputLanguage.LayoutName%2A> is called to get the keyboard layout name and display it in a text box.
410408
411409
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic InputLanguage.LayoutName Example/CPP/source.cpp" id="Snippet1":::
412410
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/InputLanguage/LayoutName/source.cs" id="Snippet1":::

0 commit comments

Comments
 (0)