Description
Returns the pixel width of the object.
This value is valid for pictures and for multi-media objects that are images or videos.
Syntax
lgnWidth = object.PixWidth |
object
Required. Object name. Returned by the GetObj function of the object, returned by Ted.GetActiveArticle.
Example
This script displays the pixel width of the object.
If Ted.HasActiveArticle Then
Dim objArticle = Ted.GetActiveArticle
Dim idx As Integer = objArticle.GetCurTxtIdx
If idx >= 0 Then
If objArticle.HasRefObj(idx) Then
Dim objObj = objArticle.GetRefObj(idx)
MsgBox(objObj.PixWidth)
End If
End If
End If
Context