/// <summary> /// 正式渲染字符串路径 /// </summary> /// <param name="rect">渲染区域</param> public void EndRenderString(Rectangle rect) { this.m_StringRect = rect; if (this.m_State == State.Hidden || !RectangleEx.IsVisible(this.m_StringRect) || this.Text == null || this.Text.Length <= 0) { return; } using (Brush brush = new SolidBrush(this.CurrentForeColor)) { RenderEngine.EndDrawString(this.m_Graphics, this.m_Text, this.m_Font, brush, this.CurrentStringRect, this.m_TextAlign, this.CurrentStringPathRect, this.CurrentStringSize); } }