Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
128 lines (121 sloc) 7.25 KB
<Type Name="VisualStyleState" FullName="System.Windows.Forms.VisualStyles.VisualStyleState">
<TypeSignature Language="C#" Value="public enum VisualStyleState" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed VisualStyleState extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.VisualStyles.VisualStyleState" />
<TypeSignature Language="VB.NET" Value="Public Enum VisualStyleState" />
<TypeSignature Language="C++ CLI" Value="public enum class VisualStyleState" />
<TypeSignature Language="F#" Value="type VisualStyleState = " />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Attributes>
<Attribute FrameworkAlternate="netcore-3.0">
<AttributeName>System.Flags</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Specifies how visual styles are applied to the current application.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This enumeration is used by the <xref:System.Windows.Forms.Application.VisualStyleState%2A?displayProperty=nameWithType> property to specify whether visual styles are applied to client or nonclient areas of application windows.
## Examples
The following code example is a simple program that applies visual styles in each of the four areas specified by the <xref:System.Windows.Forms.VisualStyles.VisualStyleState> values. To enable visual styles in a certain area, click the option button (also known as a radio button) that represents the area you want to enable, and click the **Update VisualStyleState** button to observe the changes in the window.
[!code-cpp[System.Windows.Forms.VisualStyles.VisualStyleState#0](~/samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.VisualStyles.VisualStyleState/cpp/visualstylestate.cpp#0)]
[!code-csharp[System.Windows.Forms.VisualStyles.VisualStyleState#0](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.VisualStyles.VisualStyleState/CS/visualstylestate.cs#0)]
[!code-vb[System.Windows.Forms.VisualStyles.VisualStyleState#0](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.VisualStyles.VisualStyleState/VB/visualstylestate.vb#0)]
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="ClientAndNonClientAreasEnabled">
<MemberSignature Language="C#" Value="ClientAndNonClientAreasEnabled" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.VisualStyles.VisualStyleState ClientAndNonClientAreasEnabled = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.VisualStyles.VisualStyleState.ClientAndNonClientAreasEnabled" />
<MemberSignature Language="VB.NET" Value="ClientAndNonClientAreasEnabled" />
<MemberSignature Language="C++ CLI" Value="ClientAndNonClientAreasEnabled" />
<MemberSignature Language="F#" Value="ClientAndNonClientAreasEnabled = 3" Usage="System.Windows.Forms.VisualStyles.VisualStyleState.ClientAndNonClientAreasEnabled" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.VisualStyles.VisualStyleState</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>Visual styles are applied to client and nonclient areas.</summary>
</Docs>
</Member>
<Member MemberName="ClientAreaEnabled">
<MemberSignature Language="C#" Value="ClientAreaEnabled" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.VisualStyles.VisualStyleState ClientAreaEnabled = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.VisualStyles.VisualStyleState.ClientAreaEnabled" />
<MemberSignature Language="VB.NET" Value="ClientAreaEnabled" />
<MemberSignature Language="C++ CLI" Value="ClientAreaEnabled" />
<MemberSignature Language="F#" Value="ClientAreaEnabled = 2" Usage="System.Windows.Forms.VisualStyles.VisualStyleState.ClientAreaEnabled" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.VisualStyles.VisualStyleState</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Visual styles are applied only to the client area.</summary>
</Docs>
</Member>
<Member MemberName="NonClientAreaEnabled">
<MemberSignature Language="C#" Value="NonClientAreaEnabled" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.VisualStyles.VisualStyleState NonClientAreaEnabled = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.VisualStyles.VisualStyleState.NonClientAreaEnabled" />
<MemberSignature Language="VB.NET" Value="NonClientAreaEnabled" />
<MemberSignature Language="C++ CLI" Value="NonClientAreaEnabled" />
<MemberSignature Language="F#" Value="NonClientAreaEnabled = 1" Usage="System.Windows.Forms.VisualStyles.VisualStyleState.NonClientAreaEnabled" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.VisualStyles.VisualStyleState</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>Visual styles are applied only to the nonclient area.</summary>
</Docs>
</Member>
<Member MemberName="NoneEnabled">
<MemberSignature Language="C#" Value="NoneEnabled" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.VisualStyles.VisualStyleState NoneEnabled = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.VisualStyles.VisualStyleState.NoneEnabled" />
<MemberSignature Language="VB.NET" Value="NoneEnabled" />
<MemberSignature Language="C++ CLI" Value="NoneEnabled" />
<MemberSignature Language="F#" Value="NoneEnabled = 0" Usage="System.Windows.Forms.VisualStyles.VisualStyleState.NoneEnabled" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.VisualStyles.VisualStyleState</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>Visual styles are not applied to the application.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.