vsCMClassKind Enumeration
Represents a value defining the kind of class definition represented by the object.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
<GuidAttribute("DBDF9319-8FCC-4950-A50D-1E6FB5490869")> _
Public Enumeration vsCMClassKind
[GuidAttribute("DBDF9319-8FCC-4950-A50D-1E6FB5490869")]
public enum vsCMClassKind
[GuidAttribute(L"DBDF9319-8FCC-4950-A50D-1E6FB5490869")]
public enum class vsCMClassKind
[<GuidAttribute("DBDF9319-8FCC-4950-A50D-1E6FB5490869")>]
type vsCMClassKind
public enum vsCMClassKind
Members
Member name | Description | |
---|---|---|
vsCMClassKindMainClass | This object contains a primary class definition. | |
vsCMClassKindBlueprint | Object represents a class defined in a blueprint. | |
vsCMClassKindPartialClass | Object represents a partial class definition. | |
vsCMClassKindModule | Object represents a module. (Only supported in Visual Basic.) |
Examples
Sub CodeClassExample()
Dim sel As TextSelection
Dim myClass1 As EnvDTE80.CodeClass2
Dim classPart As EnvDTE80.CodeClass2
sel = DTE.ActiveDocument.Selection
myClass1 = sel.ActivePoint.CodeElement _
(vsCMElement.vsCMElementClass)
If myClass1.ClassKind = _
vsCMClassKind.vsCMClassKindPartialClass Then
For Each classPart In myClass1.PartialClasses
Next
End If
End Sub