2019-10-09 21:28:37 +08:00
|
|
|
|
namespace UglyToad.PdfPig.AcroForms.Fields
|
|
|
|
|
{
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Tokens;
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A non-leaf field in the form's structure.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class AcroNonTerminalField : AcroFieldBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The child fields of this field.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IReadOnlyList<AcroFieldBase> Children { get; }
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create a new <see cref="AcroNonTerminalField"/>.
|
|
|
|
|
/// </summary>
|
2019-11-27 00:33:24 +08:00
|
|
|
|
internal AcroNonTerminalField(DictionaryToken dictionary, string fieldType, uint fieldFlags,
|
|
|
|
|
AcroFieldCommonInformation information,
|
|
|
|
|
AcroFieldType acroFieldType,
|
2019-10-09 21:28:37 +08:00
|
|
|
|
IReadOnlyList<AcroFieldBase> children) :
|
2019-11-27 00:33:24 +08:00
|
|
|
|
base(dictionary, fieldType, fieldFlags, acroFieldType, information,
|
2019-10-10 23:05:21 +08:00
|
|
|
|
null, null)
|
2019-10-09 21:28:37 +08:00
|
|
|
|
{
|
|
|
|
|
Children = children ?? throw new ArgumentNullException(nameof(children));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|