本文整理汇总了C#中FwStyleSheet.GetNormalLineSpacing方法的典型用法代码示例。如果您正苦于以下问题:C# FwStyleSheet.GetNormalLineSpacing方法的具体用法?C# FwStyleSheet.GetNormalLineSpacing怎么用?C# FwStyleSheet.GetNormalLineSpacing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FwStyleSheet
的用法示例。
在下文中一共展示了FwStyleSheet.GetNormalLineSpacing方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetNormalLineHeight
// The ScrollPage method is not currently used and it was using the DoEvents
// method of Application (which is being removed from the system). So this
// method is being removed.
/// ------------------------------------------------------------------------------------
/// <summary>
/// Gets the line height from the normal style.
/// </summary>
/// <param name="stylesheet">The stylesheet.</param>
/// <returns>line height value in millipoints (negative for "exact" line spacing)</returns>
/// ------------------------------------------------------------------------------------
public static int GetNormalLineHeight(FwStyleSheet stylesheet)
{
FwTextPropVar var;
int normalLineSpacing = stylesheet.GetNormalLineSpacing(out var);
// If the user changed the stylesheet to use relative (single/1.5/double) line
// spacing instead of a specific value, we'll snap it back to our factory default.
if (var == FwTextPropVar.ktpvRelative)
normalLineSpacing = kDefaultNormalLineSpacing;
return normalLineSpacing;
}