Exemplo n.º 1
0
        protected FragmentVisualBase(IStyle style, ICombinedFragment fragment, GridLayout gridLayout)
            : base(style)
        {
            m_Fragment   = fragment;
            m_GridLayout = gridLayout;
            m_Area       = m_Fragment.GetArea();

            int topDepth  = m_Area.TopDepth();
            int leftDepth = m_Area.LeftDepth();

            int bottomDepth = m_Area.BottomDepth();
            int rightDepth  = m_Area.RightDepth();

            m_PaddingDepth =
                new Padding(
                    leftDepth,
                    rightDepth,
                    topDepth,
                    bottomDepth);
        }