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ę to zdarzyć, gdy konieczne jest zastąpienie go innym typem pola lub gdy Pole nie jest już potrzebne w dokumencie. Na przykład pole TOC podczas zapisywania do HTML.
Aby usunąć pole wstawione do dokumentu za pomocą DocumentBuilder.InsertField, użyj zwróconego obiektu Field, który zapewnia wygodną Remove metodę łatwego usuwania 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.