共用方式為


XmlMappedRange.Justify Method

Rearranges the text in an XmlMappedRange control so that it fills the range evenly.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
Function Justify As Object
Object Justify()

Return Value

Type: System.Object

Remarks

If the range is not large enough, Microsoft Office Excel displays a message telling you that text extends below the range. If you click the OK button, justified text replaces the contents in cells that extend beyond the selected range. To prevent this message from appearing, set the DisplayAlerts property to false. After you set this property, text always replaces the contents in cells below the XmlMappedRange control.

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace