WinHtmlEditor/Common/HtmlTableProperty.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region Using directives
using System;
#endregion
namespace WinHtmlEditor
{
/// <summary>
/// Struct used to define a Html Table
/// Html Defaults are based on FrontPage default table
/// </summary>
[Serializable]
public struct HtmlTableProperty
{
// properties defined for the table
public string CaptionText;
public HorizontalAlignOption CaptionAlignment;
public VerticalAlignOption CaptionLocation;
public byte BorderSize;
public HorizontalAlignOption TableAlignment;
public byte TableRows;
public byte TableColumns;
public ushort TableWidth;
public MeasurementOption TableWidthMeasurement;
public byte CellPadding;
public byte CellSpacing;
/// <summary>
/// Constructor defining a base table with default attributes
/// </summary>
public HtmlTableProperty(bool htmlDefaults)
{
//define base values
CaptionText = string.Empty;
CaptionAlignment = HorizontalAlignOption.Default;
CaptionLocation = VerticalAlignOption.Default;
TableAlignment = HorizontalAlignOption.Default;
// define values based on whether HTML defaults are required
if (htmlDefaults)
{
BorderSize = 2;
TableRows = 3;
TableColumns = 3;
TableWidth = 50;
TableWidthMeasurement = MeasurementOption.Percent;
CellPadding = 1;
CellSpacing = 2;
}
else
{
BorderSize = 0;
TableRows = 1;
TableColumns = 1;
TableWidth = 0;
TableWidthMeasurement = MeasurementOption.Pixel;
CellPadding = 0;
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。