Font.IsNormalizeHeights
Font.IsNormalizeHeights property
Indicates whether the normalization of height that is to be applied to the text run.
[Obsolete("Use TextOptions.IsNormalizeHeights property instead.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsNormalizeHeights { get; set; }
Remarks
Only for the fonts of Shapes or Charts. NOTE: This member is now obsolete. Instead, please use IsNormalizeHeights property. This property will be removed 12 months later since January 2026. Aspose apologizes for any inconvenience you may have experienced.
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class FontPropertyIsNormalizeHeightsDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
Style style = workbook.CreateStyle();
Font font = style.Font;
// Set IsNormalizeHeights property
font.IsNormalizeHeights = true;
Console.WriteLine("Font IsNormalizeHeights: " + font.IsNormalizeHeights);
// Apply the style to a cell
Cell cell = worksheet.Cells["A1"];
cell.SetStyle(style);
cell.PutValue("Test Text");
// Verify the property
Font cellFont = cell.GetStyle().Font;
Console.WriteLine("Cell Font IsNormalizeHeights: " + cellFont.IsNormalizeHeights);
// Modify the property
cellFont.IsNormalizeHeights = false;
Console.WriteLine("Modified Cell Font IsNormalizeHeights: " + cellFont.IsNormalizeHeights);
}
}
}
See Also
- class Font
- namespace Aspose.Cells
- assembly Aspose.Cells