Cell.FitText Property
Returns or sets a value that indicates if Microsoft Word visually reduces the size of text typed into a cell so that it fits within the column width.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim cell1 As Cell
Dim returnValue As Boolean
returnValue = cell1.FitText
Dim sampleValue As Boolean
cell1.FitText = sampleValue
Syntax
Property FitText() As Boolean
bool FitText {get; set;}
property Boolean FitText{
Boolean get();
Void set(Boolean);
}
public boolean get_FitText();
public void set_FitText(boolean);
function get FitText() : Boolean;
function set FitText(Boolean);
Remarks
If the FitText property is set to True, the font size of the text is not changed, but the visual width of the characters is adjusted to fit all the typed text into the cell.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Cell Interface
Microsoft.Office.Interop.Word Namespace