Solid Edge FrameworkSupport Type Library
FirstLineIndent Property
Description
Sets and returns the distance from the margin to the start of the line.
Property type
Read-write property
Syntax
Visual Basic
Public Property FirstLineIndent As Double
Remarks
The TextEdit object always has an insert index or an active selection set; setting any property on the TextEdit object applies to the current selection set, if one is present, or to the text at the current insert index.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objDraftDocument As SolidEdgeDraft.DraftDocument = Nothing
        Dim objSheet As SolidEdgeDraft.Sheet = Nothing
        Dim objTextBoxs As SolidEdgeFrameworkSupport.TextBoxes = Nothing
        Dim objTextBox As SolidEdgeFrameworkSupport.TextBox = Nothing
        Dim objTextEdit As SolidEdgeFrameworkSupport.TextEdit = Nothing

        Try
            OleMessageFilter.Register()

            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objDraftDocument = objApplication.ActiveDocument
            objSheet = objDraftDocument.ActiveSheet
            objTextBoxs = objSheet.TextBoxes
            objTextBox = objTextBoxs.Add(x1:=0.1, y1:=0.3, z1:=0)
            objTextBox.Text = "Some text"
            objTextEdit = objTextBox.Edit
            ' Set first line indent
            objTextEdit.FirstLineIndent = 0.021

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub

End Module
See Also

TextEdit Object  | TextEdit Members

Send comments on this topic.