WinHtmlEditor/Form/TablePropertyForm.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region Using directives
using System;
using System.Windows.Forms;
#endregion
namespace WinHtmlEditor
{
/// <summary>
/// Form used to enter an Html Table structure
/// Input based on the HtmlTableProperty struct
/// </summary>
internal partial class TablePropertyForm : Form
{
// private variable for the table properties
private HtmlTableProperty tableProperties;
// constants for the Maximum values
private const byte MAXIMUM_CELL_ROW = 250;
private const byte MAXIMUM_CELL_COL = 50;
private const byte MAXIMUM_CELL_PAD = 25;
private const byte MAXIMUM_BORDER = 25;
private const ushort MAXIMUM_WIDTH_PERCENT = 100;
private const ushort MAXIMUM_WIDTH_PIXEL = 2500;
private const ushort WIDTH_INC_DIV = 20;
/// <summary>
/// Default form constructor
/// </summary>
public TablePropertyForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
// define the dropdown list value
this.listCaptionAlignment.Items.AddRange(Enum.GetNames(typeof(HorizontalAlignOption)));
this.listCaptionLocation.Items.AddRange(Enum.GetNames(typeof(VerticalAlignOption)));
this.listTextAlignment.Items.AddRange(Enum.GetNames(typeof(HorizontalAlignOption)));
// ensure default values are listed in the drop down lists
this.listCaptionAlignment.SelectedIndex = 0;
this.listCaptionLocation.SelectedIndex = 0;
this.listTextAlignment.SelectedIndex = 0;
// define the new maximum values of the dialogs
this.numericBorderSize.Maximum = MAXIMUM_BORDER;
this.numericCellPadding.Maximum = MAXIMUM_CELL_PAD;
this.numericCellSpacing.Maximum = MAXIMUM_CELL_PAD;
this.numericRows.Maximum = MAXIMUM_CELL_ROW;
this.numericColumns.Maximum = MAXIMUM_CELL_COL;
this.numericTableWidth.Maximum = MAXIMUM_WIDTH_PIXEL;
// define default values based on a new table
this.TableProperties = new HtmlTableProperty(true);
后面还有 75 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。