About XPropertySet.setPropertyValue

I want to use the following coding to update the content of the TextField, but it does not work. Is there special operation for refreshing and so on?

uno.Any anyField = xFormulaEnum.nextElement();
XTextField textField = anyField.value as XTextField;
XDependentTextField dependenTextField = textField as XDependentTextField;
XPropertySet propertySet = dependenTextField.getTextFieldMaster() as XPropertySet;
propertySet.setPropertyValue(“Content”, new uno.Any(“HelloWorld”));

I got it! We must refresh the textField using the following method:


Can you please select this answer as correct? Thanks.