Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Czasami konieczne jest usunięcie pola z dokumentu. Może się tak zdarzyć, gdy trzeba je zastąpić innym typem pola lub gdy pole nie jest już potrzebne w dokumencie. Na przykład pole TOC podczas zapisywania w formacie HTML.
Aby usunąć pole wstawione do dokumentu za pomocą DocumentBuilder.InsertField, użyj zwróconego obiektu Field, który zapewnia wygodną metodę Remove umożliwiającą łatwe usunięcie pola z dokumentu.
Poniższy przykład kodu pokazuje, jak usunąć pole z dokumentu:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.