 
     
     
     
     
     
     
     
    
    | IntelliCAD 11.1 Object Library | |
| AddMText Method | |
| See Also | |
|   | 
- InsertionPoint
- A Point object representing the location to insert the text.
- Width
- The width of the bounding box.
- Text
- The text to appear in the window.
| PaperSpace Collection : AddMText Method | 
 Description
Description
Adds a multiline text entity in a rectangle defined by the insertion point and width of the text window.
             Syntax
Syntax
| Visual Basic | 
|---|
| Public Function AddMText( _ ByVal InsertionPoint As Point, _ ByVal Width As Double, _ ByVal Text As String _ ) As MText | 
 Parameters
Parameters
- InsertionPoint
- A Point object representing the location to insert the text.
- Width
- The width of the bounding box.
- Text
- The text to appear in the window.
 Example
Example
Private Sub AddMtextExample()
' This example creates Mtext and adds it to the drawing using the
' AddMtext method.
Dim icadDoc As IntelliCAD.Document
Dim myText As String
Dim mtextObj As IntelliCAD.MText
Dim corner As IntelliCAD.Point
Dim width As Double
Set icadDoc = ActiveDocument
Set corner = Library.CreatePoint(0, 9)
width = 10
myText = "Test string for the AddMtext method"
' Add the mtext Object
Set mtextObj = icadDoc.ModelSpace.AddMText(corner, width, myText)
mtextObj.Update
ThisDocument.Application.ZoomExtents
End Sub
 
                         en
  en italiano
 italiano čeština
 čeština Deutsch
 Deutsch français
 français hrvatski
 hrvatski magyar
 magyar polski
 polski српски
 српски русский
 русский 中文
 中文 中文
 中文 한국어
 한국어 español
 español