------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
60 lines
1.5 KiB
C#
60 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using TheArtOfDev.HtmlRenderer.Core.Utils;
|
|
|
|
namespace TheArtOfDev.HtmlRenderer.Core.Dom
|
|
{
|
|
/// <summary>
|
|
/// Used to make space on vertical cell combination
|
|
/// </summary>
|
|
internal sealed class CssSpacingBox : CssBox
|
|
{
|
|
#region Fields and Consts
|
|
|
|
private readonly CssBox _extendedBox;
|
|
|
|
/// <summary>
|
|
/// the index of the row where box starts
|
|
/// </summary>
|
|
private readonly int _startRow;
|
|
|
|
/// <summary>
|
|
/// the index of the row where box ends
|
|
/// </summary>
|
|
private readonly int _endRow;
|
|
|
|
#endregion
|
|
|
|
|
|
public CssSpacingBox(CssBox tableBox, ref CssBox extendedBox, int startRow)
|
|
: base(tableBox, new HtmlTag("none", false, new Dictionary<string, string> { { "colspan", "1" } }))
|
|
{
|
|
_extendedBox = extendedBox;
|
|
Display = CssConstants.None;
|
|
|
|
_startRow = startRow;
|
|
_endRow = startRow + Int32.Parse(extendedBox.GetAttribute("rowspan", "1")) - 1;
|
|
}
|
|
|
|
public CssBox ExtendedBox
|
|
{
|
|
get { return _extendedBox; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the index of the row where box starts
|
|
/// </summary>
|
|
public int StartRow
|
|
{
|
|
get { return _startRow; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the index of the row where box ends
|
|
/// </summary>
|
|
public int EndRow
|
|
{
|
|
get { return _endRow; }
|
|
}
|
|
}
|
|
} |