GrapeCity MultiRow Windows Forms Documentation
TextAdjustment Property (CellStyle)


Gets or sets how to adjust the text layout.
Syntax
<SRCategoryAttribute("TextAppearance")>
<SRDescriptionAttribute("Indicates the adjustment between words that is displayed for a cell. The adjustment is not applied if the UseCompatibleTextRendering property is set to False, regardless of the value of the TextAdjustment property. Note: The cell text position may not match between edit mode and non-edit mode when the UseCompatibleTextRendering's value is True.")>
<DefaultValueAttribute()>
<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.TextAdjustmentEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
Public Property TextAdjustment As TextAdjustment
Dim instance As CellStyle
Dim value As TextAdjustment
 
instance.TextAdjustment = value
 
value = instance.TextAdjustment
[SRCategory("TextAppearance")]
[SRDescription("Indicates the adjustment between words that is displayed for a cell. The adjustment is not applied if the UseCompatibleTextRendering property is set to False, regardless of the value of the TextAdjustment property. Note: The cell text position may not match between edit mode and non-edit mode when the UseCompatibleTextRendering's value is True.")]
[DefaultValue()]
[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.TextAdjustmentEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
public TextAdjustment TextAdjustment {get; set;}

Property Value

A TextAdjustment value. The default is TextAdjustment.Inherit.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not a TextAdjustment value.
Remarks

The value represents the text arrangement. Use TextAlign to change the text position.

Note:
The TextAdjustment.Justify, TextAdjustment.Distribute, and TextAdjustment.DistributeWithSpace values only take effect when the UseCompatibleTextRendering property is set to 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.