--- title: "How to: Create Vertical Text" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "text [Windows Forms], drawing vertical" - "Windows Forms, drawing vertical text" - "strings [Windows Forms], drawing vertical" - "vertical text [Windows Forms], drawing" ms.assetid: 50c69046-4188-47d9-b949-cc2610ffd337 --- # How to: Create Vertical Text You can use a object to specify that text be drawn vertically rather than horizontally. ## Example The following example assigns the value to the property of a object. That object is passed to the method of the class. The value is a member of the enumeration. The following illustration shows the vertical text: ![Graphic that shows vertical font text.](./media/how-to-create-vertical-text/vertical-font-text-graphic.png) [!code-csharp[System.Drawing.FontsAndText#31](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.FontsAndText/CS/Class1.cs#31)] [!code-vb[System.Drawing.FontsAndText#31](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.FontsAndText/VB/Class1.vb#31)] ## Compiling the Code - The preceding example is designed for use with Windows Forms, and it requires `e` , which is a parameter of . ## See also - [How to: Draw Text with GDI](how-to-draw-text-with-gdi.md)