public void ToggleVisiblity()
        {
            bool flag = DocUtil.GetEntityVisibility(this.ParentDataset.ParentDocument, this.RasterObjectId);

            flag = !flag;
            DocUtil.SetEntityVisibility(this.ParentDataset.ParentDocument, this.RasterObjectId, flag);
        }
        public bool GetVisibility()
        {
            bool result;

            try
            {
                result = DocUtil.GetEntityVisibility(this.ParentDataset.ParentDocument, this.RasterObjectId);
            }
            catch
            {
                result = true;
            }
            return(result);
        }