vsCMClassKind vsCMClassKind vsCMClassKind vsCMClassKind vsCMClassKind vsCMClassKind Enum

Definition

Represents a value defining the kind of class definition represented by the object.

public enum class vsCMClassKind
public enum class vsCMClassKind
enum vsCMClassKind
[System.Runtime.InteropServices.Guid("DBDF9319-8FCC-4950-A50D-1E6FB5490869")]
public enum vsCMClassKind
type vsCMClassKind = 
Public Enum vsCMClassKind
Inheritance
vsCMClassKindvsCMClassKindvsCMClassKindvsCMClassKindvsCMClassKindvsCMClassKind
Attributes

Fields

vsCMClassKindBlueprint vsCMClassKindBlueprint vsCMClassKindBlueprint vsCMClassKindBlueprint vsCMClassKindBlueprint vsCMClassKindBlueprint 2

Object represents a class defined in a blueprint.

vsCMClassKindMainClass vsCMClassKindMainClass vsCMClassKindMainClass vsCMClassKindMainClass vsCMClassKindMainClass vsCMClassKindMainClass 1

This object contains a primary class definition.

vsCMClassKindModule vsCMClassKindModule vsCMClassKindModule vsCMClassKindModule vsCMClassKindModule vsCMClassKindModule 8

Object represents a module. (Only supported in Visual Basic.)

vsCMClassKindPartialClass vsCMClassKindPartialClass vsCMClassKindPartialClass vsCMClassKindPartialClass vsCMClassKindPartialClass vsCMClassKindPartialClass 4

Object represents a partial class definition.

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  

Applies to