Partager via


PropertyGrid.Right Property

Definition

Gets the distance, in points, between the right edge of the PropertyGrid and the left edge of the worksheet.

public:
 property double Right { double get(); };
public double Right { get; }
member this.Right : double
Public ReadOnly Property Right As Double

Property Value

The distance, in points, between the right edge of the PropertyGrid and the left edge of the worksheet.

Examples

For a code example that demonstrates how to use this property, see Microsoft.Office.Tools.Excel.Controls.Button.Right. All controls in the Microsoft.Office.Tools.Excel.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.Excel.Controls.PropertyGrid.Right property uses points, whereas System.Windows.Forms.Control.Right property uses pixels.

Setting the value to a negative number or a number higher than 12288 does not throw an exception but results in the control being set between 0 and 12288.

Applies to