Skip to content

PicturePath Property

Description

The PicturePath property gets or sets the path to the picture that this item is pointing to.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property PicturePath() As String

Remarks

The handle to the picture is stored in the Value property.

Example

PicturePath Sample (Visual Basic)

This sample illustrates how to retrieve the path to the picture displayed in the picture item.

Private Sub wndPropertyGrid_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)

    If (Item.Type = PropertyItemPicture) Then
        Dim ItemPicture As PropertyGridItemPicture
        Set ItemPicture = Item

        Dim Picture As StdPicture
        Set Picture = Item.Value

        Debug.Print "Path = "; ItemPicture.PicturePath
        Debug.Print "Type = "; Picture.Type; ", Width = "; Picture.Width; ", Height = "; Picture.Height
    End If

End Sub

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.