This document is archived and information here might be outdated.  Recommended version.


IStyleGalleryClass.Preview Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IStyleGalleryClass Interface > IStyleGalleryClass.Preview Method
ArcGIS Developer Help

IStyleGalleryClass.Preview Method

Draws a preview of a Style Gallery Item of the supported class.

[Visual Basic .NET]
Public Sub Preview ( _
    ByVal galleryItem As Object, _
    ByVal hDC As Integer, _
    ByRef rectangle As tagRECT _
)
[C#]
public void Preview (
    object galleryItem,
    int hDC,
    ref tagRECT rectangle
);
[C++]
HRESULT Preview(
  LPUNKNOWN galleryItem,
  OLE_HANDLE hDC,
  tagRECT* rectangle
);
[C++]
Parameters
galleryItem [in]

galleryItem is a parameter of type IUnknown hDC [in]
hDC is a parameter of type OLE_HANDLE rectangle [in]
rectangle is a parameter of type tagRECT*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IStyleGalleryClass Interface

.NET Samples

Custom Root Object (Style Gallery)