在template Designer 中的fields设置一个fields后通过下面例子无法找到它的ID
public TXTextControl.TextField SelectByID(TXTextControl.TextControl tx, ID FieldID)
{
TXTextControl.TextField SelectedField = null;
foreach (TXTextControl.TextField Field in tx.TextFields)
{
if ((int)FieldID == Field.ID) SelectedField = Field;
}
return SelectedField;
} |