Charm quarks possess a large mass and thus they are expected to be primarily produced during the initial stages of heavy-ion collisions. Hot and dense nuclear matter, usually referred to as the Quark-Gluon Plasma (QGP), can also be created in these collisions. Therefore, properties of the QGP can be studied via the energy loss and anisotropy of charm quarks, which is closely related to the nature of interactions between charm quarks and the medium.
In these proceedings, we will report the most recent measurements of $\mathrm{D}^{0}$, $\mathrm{D}^{\pm}$ and $\mathrm{D}_\mathrm{s}$ production in Au+Au collisions at ${\sqrt{s_{\text{NN}}} =200 \mathrm{~GeV.}}$ These open charm mesons are reconstructed via their hadronic decay channels, where the daughter particles are tracked and identified with excellent precision by the STAR experiment at RHIC. At high transverse momentum region and in central Au+Au collisions, D meson production is strongly suppressed compared to that in p+p collisions, indicating substantial energy loss of charm quarks in the medium. In addition, measurements of elliptic and triangular anisotropies of D meson azimuthal distributions indicate that charm quarks have gained significant flow in the QGP. These results are compared to those of light hadrons as well as theoretical calculations. Moreover, charm quarks participate in coalescence hadronization in the QGP as suggested by the enhanced $\mathrm{D}_\mathrm{s}$ to $\mathrm{D}^{0}$ yield ratio in Au+Au collisions compared to that in p+p collisions.