Previous Document Next Document

Object Model Reference : Classes : B : Bitmap : Properties : Bitmap.ExternalLinkTime


Bitmap.ExternalLinkTime

Property ExternalLinkTime As Date

Description

Member of Bitmap

The ExternalLinkTime returns the time at which the bitmap was externally linked.

The ExternalLinkTime returns a read-only value.

VBA example

The following VBA example updates the externally linked bitmap if the original bitmap had been modified since it was linked.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Type = cdrBitmapShape Then
   With s.Bitmap
    If Not .Embedded Then
     If DateDiff("s", FileDateTime(s.Bitmap.LinkFileName), _
       .ExternalLinkTime) <> 0 Then
      .UpdateLink
     End If
    End If
   End With
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.