RVTDocs.com
Namespace: Autodesk.Revit.DB Class: ElementType

ElementType.GetPreviewImage

Method
Description:
Get the preview image of an element. This image is similar to what is seen in the Revit UI when selecting the type of an element.
Syntax
public virtual Bitmap GetPreviewImage(
	Size size
)
Parameters
Parameter Type Description
size Size The width and height of the preview image in pixels.
Return Value
Type Description
Bitmap System::Drawing::Bitmap represents the preview image. if there is no preview image.
Exceptions
Exception Condition
ArgumentException The width or height of the size is equal or less than zero.