/// <summary> /// Returns the renderer control will be rendered with. /// </summary> /// <returns>The current renderer.</returns> public virtual Rendering.BaseRenderer GetRenderer() { if (m_RenderMode == eRenderMode.Global && Rendering.GlobalManager.Renderer != null) return Rendering.GlobalManager.Renderer; else if (m_RenderMode == eRenderMode.Custom && m_Renderer != null) return m_Renderer; if (m_DefaultRenderer == null) m_DefaultRenderer = new Rendering.Office2007Renderer(); return m_DefaultRenderer; }
/// <summary> /// Returns the renderer control will be rendered with. /// </summary> /// <returns>The current renderer.</returns> public virtual Rendering.BaseRenderer GetRenderer() { if (m_RenderMode == eRenderMode.Global && Rendering.GlobalManager.Renderer != null) return Rendering.GlobalManager.Renderer; else if (m_RenderMode == eRenderMode.Custom && m_Renderer != null) return m_Renderer; if (m_DefaultRenderer == null) { if (BarFunctions.IsOffice2007Style(this.Style)) m_DefaultRenderer = new Rendering.Office2007Renderer(); //else // m_DefaultRenderer = new Rendering.Office12Renderer(); } return m_Renderer; }
/// <summary> /// Returns the renderer control will be rendered with. /// </summary> /// <returns>The current renderer.</returns> private Rendering.BaseRenderer GetRenderer() { if (Rendering.GlobalManager.Renderer != null) return Rendering.GlobalManager.Renderer; if (m_DefaultRenderer == null) m_DefaultRenderer = new Rendering.Office2007Renderer(); return m_DefaultRenderer; }