public void WriteToAll(PdfName key, PdfObject value, int writeFlags) {
int i;
PdfDictionary curDict = null;
if ((writeFlags & WRITE_MERGED) != 0) {
for (i = 0; i < merged.Count; ++i) {
curDict = GetMerged(i);
curDict.Put(key, value);
}
}
if ((writeFlags & WRITE_WIDGET) != 0) {
for (i = 0; i < widgets.Count; ++i) {
curDict = GetWidget(i);
curDict.Put(key, value);
}
}
if ((writeFlags & WRITE_VALUE) != 0) {
for (i = 0; i < values.Count; ++i) {
curDict = GetValue(i);
curDict.Put(key, value);
}
}
}