This function returns the name of the shape type.
Control Type in Object Inspector | Type Name |
TButton | TICDOButton |
TBevel | TICDOBevel |
TCheckBox | TICDOChechBox |
TListControl | TICDOListControl |
TComboBox | TICDOComboBox |
TEdit | TICDOEdit |
TImage | TICDOImage |
TLabel | TICDOLabel |
TLinker | TICDOLinker |
TMemo | TICDOMemo |
TRadioButton | TICDORadioButton |
TReport | TICDOReport |
TRichEdit | TICDORichEdit |
TISliceImageEditor | TISliceImageEditor |
TShape | TICDOShape |
TWebBrowser | TICDOWebBrowser |
object.TypeName()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISShape interface |
string
Display some information about the specified shape, including the name of the shape type.
Dim aShape
Dim aShapeInfo
Set aShape = Form.Controls_("Shape1")
aShapeInfo =_
"ShortName: " & aShape.ShortName & vbNewLine &_
"Caption: " & aShape.Caption & vbNewLine &_
"Type Name " & aShape.TypeName & vbNewLine &_
"Top: " & aShape.Top & vbNewLine &_
"Tag: " & aShape.Tag & vbNewLine &_
"Left: " & aShape.Left & vbNewLine &_
"Height: " & aShape.Height & vbNewLine &_
"Width: " & aShape.Width
Profile.MsgBox(aShapeInfo)
In Profile Client v8 on User Interface Type Name cannot be found.