37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace XP.ReportEngine.Models
|
|
{
|
|
/// <summary>
|
|
/// 排版后的页面 | Laid-out page
|
|
/// </summary>
|
|
public class LayoutPage
|
|
{
|
|
public int PageNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 页面类型(来自模板定义:homepage / metricData / bgaInspection 等)
|
|
/// Page type from template definition
|
|
/// </summary>
|
|
public string PageType { get; set; }
|
|
|
|
public List<LayoutElement> Elements { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 排版后的元素(含计算后的绝对坐标)| Laid-out element with computed absolute coordinates
|
|
/// </summary>
|
|
public class LayoutElement
|
|
{
|
|
public TemplateElement Source { get; set; }
|
|
public float X { get; set; }
|
|
public float Y { get; set; }
|
|
public float Width { get; set; }
|
|
public float Height { get; set; }
|
|
public StyleDefinition ResolvedStyle { get; set; }
|
|
public string ResolvedContent { get; set; }
|
|
public List<Dictionary<string, object>> ResolvedTableData { get; set; }
|
|
public ImageData ResolvedImage { get; set; }
|
|
}
|
|
}
|