This documentation is archived and is not being maintained.

AppliedStyleSheets Property

Visual Studio .NET 2003

Displays or changes the inherited style sheets. In the case of Visual C++ .NET, it is not possible to add your own style sheets to a project.

[Visual Basic .NET]
Public Property AppliedStyleSheets() As String
[Visual Basic 6]
Property Get AppliedStyleSheets() As String
Property Let AppliedStyleSheets( _
   ByVal NewValue As String _
HRESULT __stdcall get_AppliedStyleSheets(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_AppliedStyleSheets(
   /* [in] */ BSTR NewValue
public string AppliedStyleSheets {get; set;}
[JScript .NET]
public function get AppliedStyleSheets() : String
public function set AppliedStyleSheets(
   NewValue : String


The following sample code uses the AppliedStyleSheets property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim Test As String
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        Test = cfg.AppliedStyleSheets
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCConfiguration Object | VCStyleSheet Object