how to draw text in monogame

Code Example - how to draw text in monogame

                
                        // In the LoadContent() method:
SpriteFont font = Content.Load<SpriteFont>("sprite font location");
// In the Draw() method:
spriteBatch.Begin();
spriteBatch.DrawString(font, "Hello World!", position, color);
spriteBatch.End();