/// <summary> /// Creates a new /// <see cref="BackgroundPosition"/> /// instance. /// </summary> /// <remarks> /// Creates a new /// <see cref="BackgroundPosition"/> /// instance. Fills it with default values. /// </remarks> public BackgroundPosition() { xShift = new UnitValue(UnitValue.POINT, 0); yShift = new UnitValue(UnitValue.POINT, 0); positionX = BackgroundPosition.PositionX.LEFT; positionY = BackgroundPosition.PositionY.TOP; }
/// <summary>Sets horizontal position.</summary> /// <param name="xPosition">position in x-dimension</param> /// <returns> /// /// <see cref="BackgroundPosition"/> /// </returns> public virtual iText.Layout.Properties.BackgroundPosition SetPositionX(BackgroundPosition.PositionX xPosition ) { this.positionX = xPosition; return(this); }