TextBox.Right Property

Definition

Gets the distance, in points, between the right edge of the TextBox and the left edge of the document.

public:
 property float Right { float get(); };
public float Right { get; }
member this.Right : single
Public ReadOnly Property Right As Single

Property Value

The distance, in points, between the right edge of the TextBox and the left edge of the document.

Examples

For a code example that demonstrates how to use this property, see Microsoft.Office.Tools.Word.Controls.Button.Right. All controls in the Microsoft.Office.Tools.Word.Controls namespace have a functionally equivalent Right property.

Remarks

The value of the Right property is equal to the sum of the Left property value and the Width property value.

The Microsoft.Office.Tools.Word.Controls.TextBox.Right property uses points, whereas System.Windows.Forms.Control.Right property uses pixels.

Applies to