Skip to content
Open
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
13 changes: 6 additions & 7 deletions xml/System.Windows.Forms/InputLanguage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -436,16 +436,15 @@ Specifically, this method performs the following operations:
<summary>Gets the name of the current keyboard layout as it appears in the regional settings of the operating system on the computer.</summary>
<value>The name of the layout.</value>
<remarks>
<format type="text/markdown"><![CDATA[

<format type="text/markdown"><![CDATA[
## Examples
The following code example gets the culture associated with the current input language and displays the culture name.

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.
In the following example, <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.

:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic InputLanguage.LayoutName Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/InputLanguage/LayoutName/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Windows.Forms/InputLanguage/LayoutName/source.vb" id="Snippet1":::
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic InputLanguage.LayoutName Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/InputLanguage/LayoutName/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Windows.Forms/InputLanguage/LayoutName/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down