public void SetFlag(WorcsDocumentFlags flag) => Flags |= flag;
public void RemoveFlag(WorcsDocumentFlags flag) => Flags &= ~flag;
public bool HasFlag(WorcsDocumentFlags flag) => (Flags & flag) != 0;