コード例 #1
0
            internal ColumnDef(float leftPosition, float rightPosition, MultiColumnText mc)
            {
                this.mc = mc;
                left    = new float[4];
                left[0] = leftPosition; // x1
                left[1] = mc.top;       // y1
                left[2] = leftPosition; // x2
                if (mc.desiredHeight == AUTOMATIC || mc.top == AUTOMATIC)
                {
                    left[3] = AUTOMATIC;
                }
                else
                {
                    left[3] = mc.top - mc.desiredHeight;
                }

                right    = new float[4];
                right[0] = rightPosition; // x1
                right[1] = mc.top;        // y1
                right[2] = rightPosition; // x2
                if (mc.desiredHeight == AUTOMATIC || mc.top == AUTOMATIC)
                {
                    right[3] = AUTOMATIC;
                }
                else
                {
                    right[3] = mc.top - mc.desiredHeight;
                }
            }
コード例 #2
0
            internal ColumnDef(float leftPosition, float rightPosition, MultiColumnText mc)
            {
                this.mc = mc;
                left = new float[4];
                left[0] = leftPosition; // x1
                left[1] = mc.top;          // y1
                left[2] = leftPosition; // x2
                if (mc.desiredHeight == AUTOMATIC || mc.top == AUTOMATIC) {
                    left[3] = AUTOMATIC;
                } else {
                    left[3] = mc.top - mc.desiredHeight;
                }

                right = new float[4];
                right[0] = rightPosition; // x1
                right[1] = mc.top;           // y1
                right[2] = rightPosition; // x2
                if (mc.desiredHeight == AUTOMATIC || mc.top == AUTOMATIC) {
                    right[3] = AUTOMATIC;
                } else {
                    right[3] = mc.top - mc.desiredHeight;
                }
            }
コード例 #3
0
 internal ColumnDef(float[] newLeft, float[] newRight, MultiColumnText mc)
 {
     this.mc = mc;
     left = newLeft;
     right = newRight;
 }
コード例 #4
0
 internal ColumnDef(float[] newLeft, float[] newRight, MultiColumnText mc)
 {
     this.mc = mc;
     left    = newLeft;
     right   = newRight;
 }