public void UpdateRowOffset(double sizeInPoints, bool start) { long num = EmuConverter.PointsToEmus((long)sizeInPoints); if (start) { TwoCellAnchor.From.RowOff = ((long)((double)num * _startPosition.OffsetY)).ToString(CultureInfo.InvariantCulture); } else { TwoCellAnchor.To.RowOff = ((long)((double)num * _endPosition.OffsetY)).ToString(CultureInfo.InvariantCulture); } }
public void UpdateColumnOffset(double sizeInPoints, bool start) { long num = EmuConverter.PointsToEmus((long)sizeInPoints); if (start) { this.TwoCellAnchor.From.ColOff = ((long)((double)num * this._startPosition.OffsetX)).ToString(CultureInfo.InvariantCulture); } else { this.TwoCellAnchor.To.ColOff = ((long)((double)num * this._endPosition.OffsetX)).ToString(CultureInfo.InvariantCulture); } }