Пример #1
0
        public static ElementStyle GetListViewBorderStyle(Office2007ListViewColorTable lvct)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.ListViewBorderKey;

            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerType = eCornerType.Square;
            style.BorderColor = lvct.Border;
            
            return style;
        }
Пример #2
0
        private Office2007ListViewColorTable GetColorTable()
        {
            if (m_ListViewColorTable == null)
            {
                Office2007Renderer r = this.GetRenderer() as Office2007Renderer;
                if (r != null)
                {
                    m_ListViewColorTable = r.ColorTable.ListViewEx;
                }
            }

            return m_ListViewColorTable;
        }