Share via


DocumentBase.VBProject Özellik

Tanım

Belge için Microsoft.Vbe.Interop.VBProject'i alır.

public:
 property Microsoft::Vbe::Interop::VBProject ^ VBProject { Microsoft::Vbe::Interop::VBProject ^ get(); };
public Microsoft.Vbe.Interop.VBProject VBProject { get; }
member this.VBProject : Microsoft.Vbe.Interop.VBProject
Public ReadOnly Property VBProject As VBProject

Özellik Değeri

Belge için Microsoft.Vbe.Interop.VBProject.

Örnekler

Aşağıdaki kod örneği, belgenin VBProject Visual Basic for Applications projesinin adını görüntülemek için özelliğini kullanır. Bu örneği kullanmak için belge düzeyi projesindeki sınıfından ThisDocument çalıştırın.

private void DocumentVBProject()
{
    MessageBox.Show("The name of the VB project is: " +
        this.VBProject.Name);
}
Private Sub DocumentVBProject()
    MessageBox.Show("The name of the VB project is: " & Me.VBProject.Name)
End Sub 

Açıklamalar

Kod modüllerine ve kullanıcı formlarına erişim elde etmek için bu özelliği kullanın.

Şunlara uygulanır