Returns the Balloons collection object for the referenced object.
Visual Basic |
---|
Public Property Balloons As Object |
Imports System.IO Imports System.Runtime.InteropServices Module Example <STAThread()> _ Sub Main() Dim objApplication As SolidEdgeFramework.Application Dim objDraftDocument As SolidEdgeDraft.DraftDocument Dim objSheet As SolidEdgeDraft.Sheet Dim objBalloons As SolidEdgeFrameworkSupport.Balloons Try OleMessageFilter.Register() objApplication = Marshal.GetActiveObject("SolidEdge.Application") objDraftDocument = objApplication.ActiveDocument objSheet = objDraftDocument.ActiveSheet objBalloons = objSheet.Balloons Catch ex As Exception Console.WriteLine(ex.Message) Finally OleMessageFilter.Revoke() End Try End Sub End Module
using System.IO; using System.Runtime.InteropServices; internal static class Example { [STAThread()] public static void Main() { SolidEdgeFramework.Application objApplication = null; SolidEdgeDraft.DraftDocument objDraftDocument = null; SolidEdgeDraft.Sheet objSheet = null; SolidEdgeFrameworkSupport.Balloons objBalloons = null; try { OleMessageFilter.Register(); objApplication = (SolidEdgeFramework.Application)Marshal.GetActiveObject("SolidEdge.Application"); objDraftDocument = objApplication.ActiveDocument; objSheet = objDraftDocument.ActiveSheet; objBalloons = objSheet.Balloons; } catch (Exception ex) { Console.WriteLine(ex.Message); } finally { OleMessageFilter.Revoke(); } } }