ComponentFactory.Krypton.Toolkit.ViewDrawContent.IsImageDisplayed C# (CSharp) Method

IsImageDisplayed() public method

Get a value indicating if the content image is being displayed.
public IsImageDisplayed ( ViewContext context ) : bool
context ViewContext ViewLayoutContext context.
return bool
        public bool IsImageDisplayed(ViewContext context)
        {
            Debug.Assert(context != null);

            // Validate incoming reference
            if (context == null) throw new ArgumentNullException("context");

            bool isDisplayed = false;

            // If we have some content to investigate
            if (_paletteContent.GetContentDraw(State) == InheritBool.True)
                isDisplayed = context.Renderer.RenderStandardContent.GetContentImageDisplayed(_memento);

            return isDisplayed;
        }