VsTeXProject.VisualStudio.Project.ProjectNode.GetProperty C# (CSharp) Method

GetProperty() public method

Gets the properties of the project node.
public GetProperty ( int propId ) : object
propId int The __VSHPROPID of the property.
return object
        public override object GetProperty(int propId)
        {
            switch ((__VSHPROPID) propId)
            {
                case __VSHPROPID.VSHPROPID_ConfigurationProvider:
                    return ConfigProvider;

                case __VSHPROPID.VSHPROPID_ProjectName:
                    return Caption;

                case __VSHPROPID.VSHPROPID_ProjectDir:
                    return ProjectFolder;

                case __VSHPROPID.VSHPROPID_TypeName:
                    return ProjectType;

                case __VSHPROPID.VSHPROPID_ShowProjInSolutionPage:
                    return ShowProjectInSolutionPage;

                case __VSHPROPID.VSHPROPID_ExpandByDefault:
                    return true;

                // Use the same icon as if the folder was closed
                case __VSHPROPID.VSHPROPID_OpenFolderIconIndex:
                    return GetProperty((int) __VSHPROPID.VSHPROPID_IconIndex);
            }

            switch ((__VSHPROPID2) propId)
            {
                case __VSHPROPID2.VSHPROPID_SupportsProjectDesigner:
                    return SupportsProjectDesigner;

                case __VSHPROPID2.VSHPROPID_PropertyPagesCLSIDList:
                    return
                        Utilities.CreateSemicolonDelimitedListOfStringFromGuids(
                            GetConfigurationIndependentPropertyPages());

                case __VSHPROPID2.VSHPROPID_CfgPropertyPagesCLSIDList:
                    return
                        Utilities.CreateSemicolonDelimitedListOfStringFromGuids(GetConfigurationDependentPropertyPages());

                case __VSHPROPID2.VSHPROPID_PriorityPropertyPagesCLSIDList:
                    return Utilities.CreateSemicolonDelimitedListOfStringFromGuids(GetPriorityProjectDesignerPages());

                case __VSHPROPID2.VSHPROPID_Container:
                    return true;
                default:
                    break;
            }

            return base.GetProperty(propId);
        }
ProjectNode