I resolved the issue by using go.GraphObject.Fill. Thank you very much for your help!
go.GraphObject.Fill