GrapeCity MultiRow Windows Forms Documentation
LineAdjustment Property (CellStyle)


Gets or sets how to adjust the text line layout.
Syntax
<SRDescriptionAttribute("Indicates the adjustment between lines that is displayed for a cell when Cell is in multi-line display mode. The adjustment is not applied if the UseCompatibleTextRendering property is set to False, regardless of the value of the LineAdjustment property. Note: The cell text position may not match between edit mode and non-edit mode when the UseCompatibleTextRendering's value is True.")>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.LineAdjustmentEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
<SRCategoryAttribute("TextAppearance")>
<DefaultValueAttribute()>
Public Property LineAdjustment As LineAdjustment
Dim instance As CellStyle
Dim value As LineAdjustment
 
instance.LineAdjustment = value
 
value = instance.LineAdjustment
[SRDescription("Indicates the adjustment between lines that is displayed for a cell when Cell is in multi-line display mode. The adjustment is not applied if the UseCompatibleTextRendering property is set to False, regardless of the value of the LineAdjustment property. Note: The cell text position may not match between edit mode and non-edit mode when the UseCompatibleTextRendering's value is True.")]
[RefreshProperties(RefreshProperties.Repaint)]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.LineAdjustmentEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
[SRCategory("TextAppearance")]
[DefaultValue()]
public LineAdjustment LineAdjustment {get; set;}

Property Value

A LineAdjustment value. The default is LineAdjustment.Inherit.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not a LineAdjustment value.
Remarks
Note:
This property only takes effect when the UseCompatibleTextRendering property value is MultiRowTriState.True.
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

CellStyle Class
CellStyle Members

 

 


Copyright © GrapeCity, inc. All rights reserved.