ViewDisplayBackground Class

Set of values that control how background is drawn in a view. Background can only be set for a 3d view or for a section or elevation view.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBViewDisplayBackground

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ViewDisplayBackground : IDisposable

The ViewDisplayBackground type exposes the following members.

Properties
 NameDescription
Public propertyBackgroundColor The color of the horizon when the type is 'Gradient'.
Public propertyGroundColor The color of the ground when the type is 'Gradient' or 'SunAndClouds'.
Public propertyHorizontalImageOffset The distance between the left viewport boundary and the left edge of the background image.
Public propertyHorizontalImageScale The horizontal scale of the background image; the scale of 1.0 puts the image pixel-to-pixel.
Public propertyImageFlags The image alignment indicators when the type is 'Image'.
Public propertyImagePath The path to the image file when the type is 'Image'.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertySkyColor The color of the sky when the type is 'Gradient'.
Public propertyType The type of the background.
Public propertyVerticalImageOffset The distance between the bottom viewport boundary and the bottom edge of the background image.
Public propertyVerticalImageScale The vertical scale of the background image; the scale of 1.0 puts the image pixel-to-pixel.
Top
Methods
 NameDescription
Public methodStatic memberCreateGradient Creates an object that can be passed to View.SetBackground method to set the background of the Gradient type.
Public methodStatic memberCreateImage Creates an object that can be passed to View.SetBackground method to set the background of the Image type.
Public methodStatic memberCreateSky Creates an object that can be passed to View.SetBackground method to set the background of the SunAndClouds type.
Public methodDisposeReleases all resources used by the ViewDisplayBackground
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also