Es kann helfen, nicht nur Sie, sondern auch andere .. :)
Imports Microsoft.Office.Interop.Visio Public Class VisioMain
Dim currentStencil As Document
Dim currentPage As Page
Private Sub VisioMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
currentPage = DC.Document.Pages(1)
SetLandscape(currentPage)
currentStencil = DC.Document.Application.Documents.OpenEx("Rack-mounted Equipment (US units).VSS", VisOpenSaveArgs.visOpenDocked)
Dim stencilWindow As Window
stencilWindow = currentPage.Document.OpenStencilWindow
stencilWindow.Activate()
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
''Code to get individual property of Shape...........!
For Each objShape As Microsoft.Office.Interop.Visio.Shape In currentPage.Shapes
TextBox1.Text = objShape.Cells("Prop.Height").ResultStr("text")
Next
''.............!
End Sub
Endklasse
Vielen Dank für Ihre Antwort. Aber was ich genau brauche, sind die benutzerdefinierten Eigenschaften der Form, abgesehen von der Eigenschaft text. –