Beispiel #1
0
        public static xdr.TwoCellAnchor SetTopLeft(this xdr.TwoCellAnchor twoCellAnchor, int rowNum, double topOffset, int columnNum, double leftOffset)
        {
            var initialWidth = twoCellAnchor.GetWidthInPixels(__DPI);
            var initalHeight = twoCellAnchor.GetHeightInPixels(__DPI);

            twoCellAnchor.FromMarker = new xdr.FromMarker().At(rowNum, topOffset, columnNum, leftOffset);
            twoCellAnchor.SetWidthInPixels(initialWidth, __DPI);
            twoCellAnchor.SetHeightInPixels(initalHeight, __DPI);
            return(twoCellAnchor);
        }
Beispiel #2
0
        public static xdr.TwoCellAnchor SetTopLeft(this xdr.TwoCellAnchor twoCellAnchor, string cellAddress, double topOffset = 0, double leftOffset = 0)
        {
            var initialWidth = twoCellAnchor.GetWidthInPixels(__DPI);
            var initalHeight = twoCellAnchor.GetHeightInPixels(__DPI);

            twoCellAnchor.FromMarker = new xdr.FromMarker().At(cellAddress, topOffset, leftOffset);
            twoCellAnchor.SetWidthInPixels(initialWidth, __DPI);
            twoCellAnchor.SetHeightInPixels(initalHeight, __DPI);
            return(twoCellAnchor);
        }