Solid Edge Framework Type Library
Caption Property
Description
Sets and returns the caption of the referenced object.
Property type
Read-write property
Syntax
Visual Basic
Public Property Caption As String
Example
Imports SolidEdgeFramework
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim strCaption As String

        Try
            OleMessageFilter.Register()

            ' Connect to a running instance of Solid Edge.
            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            strCaption = objApplication.Caption
            objApplication.Caption = "My Caption"

        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

Application Object  | Application Members