2021 Method
Changes 4
M

ElementType.GetPreviewImage

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.
public virtual Bitmap GetPreviewImage(
	Size size
)
  • Size
    size
    The width and height of the preview image in pixels.
Return Value nullNothingnullptr System::Drawing::Bitmap represents the preview image. null Nothing nullptr a null reference ( Nothing in Visual Basic) if there is no preview image.