Method defaultInstance

From Ribbon Commander Documentation
Revision as of 14:37, 14 March 2013 by Rxdff15551 bb53 (Talk | contribs) (Remarks)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Static method that returns the default rxCustomUI object of the current session.

Parameters

Parameter Name
Parameter Type
Default Value
Description

Remarks

The default rxCustomUI object is convenient for testing and tutorials. In production code however, it is recommended that custom contexts are created (see rxCustomUI.create) to avoid conflicts with other applications/add-ins.

Examples

VBA

  1. ' Cache a reference to the default rxCustomUI of this session
  2. Dim myCustomUI As rxCustomUI
  3. Set myCustomUI = rxCustomUI.defaultInstance

C#

  1. // Cache a reference to the default rxCustomUI of this session
  2. rxCustomUI myCustomUI = rxCustomUI.defaultInstance

VB.NET

  1. ' Cache a reference to the default rxCustomUI of this session
  2. Dim myCustomUI As rxCustomUI = rxCustomUI.defaultInstance

C++

  1.