Exemplo n.º 1
0
        protected MsofbtClientAnchorRecord GenerateClientAnchorRecord()
        {
            MsofbtClientAnchorRecord rec = new MsofbtClientAnchorRecord();

            this.SetLeftPosition(rec);
            this.SetRightPosition(rec);
            this.SetBottomPosition(rec);
            this.SetTopPosition(rec);
            return(rec);
        }
Exemplo n.º 2
0
        private void SetTopPosition(MsofbtClientAnchorRecord rec)
        {
            int columnWidthOrRowHeight = 17;
            int num2 = 0;
            int top  = this.top;

            while (top > columnWidthOrRowHeight)
            {
                top -= columnWidthOrRowHeight;
                num2++;
            }
            rec.TopColumnIndex = num2;
            rec.TopOffset      = this.ConvertPixelsToOffsetValue(columnWidthOrRowHeight, top, false);
        }
Exemplo n.º 3
0
        private void SetRightPosition(MsofbtClientAnchorRecord rec)
        {
            int columnWidthOrRowHeight = 64;
            int num2  = 0;
            int right = this.right;

            while (right > columnWidthOrRowHeight)
            {
                right -= columnWidthOrRowHeight;
                num2++;
            }
            rec.RightColumnIndex = num2;
            rec.RightOffset      = this.ConvertPixelsToOffsetValue(columnWidthOrRowHeight, right, true);
        }
Exemplo n.º 4
0
        private void SetLeftPosition(MsofbtClientAnchorRecord rec)
        {
            int columnWidthOrRowHeight = 64;
            int num2 = 0;
            int left = this.left;

            while (left > columnWidthOrRowHeight)
            {
                left -= columnWidthOrRowHeight;
                num2++;
            }
            rec.LeftColumnIndex = num2;
            rec.LeftOffset      = this.ConvertPixelsToOffsetValue(columnWidthOrRowHeight, left, true);
        }
Exemplo n.º 5
0
        private void SetBottomPosition(MsofbtClientAnchorRecord rec)
        {
            int columnWidthOrRowHeight = 17;
            int num2   = 0;
            int bottom = this.bottom;

            while (bottom > columnWidthOrRowHeight)
            {
                bottom -= columnWidthOrRowHeight;
                num2++;
            }
            rec.BottomColumnIndex = num2;
            rec.BottomOffset      = this.ConvertPixelsToOffsetValue(columnWidthOrRowHeight, bottom, false);
        }