DockableFrameVisibilityChanged Event


Subscribe to this event to be notified when a Revit GenericDockableFrame has been shown or hidden in the Revit user interface. This event is called only for API-created GenericDockableFrames.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2015

Syntax

C#
public event EventHandler<DockableFrameVisibilityChangedEventArgs> DockableFrameVisibilityChanged
Visual Basic
Public Event DockableFrameVisibilityChanged As EventHandler(Of DockableFrameVisibilityChangedEventArgs)
Visual C++
public:
 event EventHandler<DockableFrameVisibilityChangedEventArgs^>^ DockableFrameVisibilityChanged {
	void add (EventHandler<DockableFrameVisibilityChangedEventArgs^>^ value);
	void remove (EventHandler<DockableFrameVisibilityChangedEventArgs^>^ value);
}

Remarks

This event is raised when the GenericDockableFrame is just about to be shown or hidden.

Event is not cancellable. The 'Cancellable' property of event's argument is always False.

No document may be modified at the time of the event.

The following API functions are not available for the current document during this event:

  • All overloads of Autodesk.Revit.DB.Document.Export()
  • All overloads of Autodesk.Revit.DB.Document.Import()
  • Autodesk::Revit::DB::Document::Print
  • Print and similar overloads.
  • SubmitPrint and similar overloads.
  • Close and similar overloads.
  • Save and similar overloads.
  • SaveAs(String) and similar overloads.

Exception InvalidOperationException will be thrown if any of the above methods is called during this event.

See Also