GrapeCity MultiRow Windows Forms Documentation
RightMargin Property


Gets or sets the size of a single line of text within the RichTextBoxCell.
Syntax
<DefaultValueAttribute()>
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Indicates the length, in pixels, of a single line of text within the RichTextBoxCell.")>
<LocalizableAttribute(True)>
Public Property RightMargin As Integer
Dim instance As RichTextBoxCell
Dim value As Integer
 
instance.RightMargin = value
 
value = instance.RightMargin
[DefaultValue()]
[SRCategory("Behavior")]
[SRDescription("Indicates the length, in pixels, of a single line of text within the RichTextBoxCell.")]
[Localizable(true)]
public int RightMargin {get; set;}

Property Value

The size, in pixels, of a single line of text in the control. The default is zero.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThe specified value was less than 0.
Remarks
When a value greater than zero is entered into the cell, an invisible margin is placed in the cell at the specified number of pixels from the left side of the cell. Any text that is entered that extends beyond this margin is placed on the next line of text in the cell. This property affects all text currently entered into the cell as well as any additional text entered into the cell after the property is set. You can use this property to specify a maximum line width for all text entered into a RichTextBoxCell.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RichTextBoxCell Class
RichTextBoxCell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.