ISShape.TypeName

Description

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

Syntax

object.TypeName()

Part Attribute Type Description
object Required
The object always implements the ISShape interface

Return Value

string

Returns the name of the shape type.

Example

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) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Type Name cannot be found.

Version information

Added in v7.8.0