Ask Your Question

About XPropertySet.setPropertyValue [closed]

asked 2013-05-02 04:58:28 +0200

Beavey.Zou gravatar image

updated 2013-05-02 11:33:04 +0200

oweng gravatar image

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"));

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-31 02:18:46.018505

1 Answer

Sort by » oldest newest most voted

answered 2013-05-02 11:15:38 +0200

Beavey.Zou gravatar image

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


edit flag offensive delete link more


Can you please select this answer as correct? Thanks.

oweng gravatar imageoweng ( 2013-05-02 11:36:27 +0200 )edit

Question Tools


Asked: 2013-05-02 04:58:28 +0200

Seen: 343 times

Last updated: May 02 '13