hoTools.ActiveX.AddinControlGui._toolTipRtfListOfSearches_Draw C# (CSharp) Method

_toolTipRtfListOfSearches_Draw() private method

private _toolTipRtfListOfSearches_Draw ( object sender, DrawToolTipEventArgs e ) : void
sender object
e System.Windows.Forms.DrawToolTipEventArgs
return void
        private void _toolTipRtfListOfSearches_Draw(object sender, DrawToolTipEventArgs e)
        {

            // Draw the custom background.
            e.Graphics.FillRectangle(SystemBrushes.Window, e.Bounds);

            // Draw the standard border.
            e.DrawBorder();

            // Draw the custom text.
            // The using block will dispose the StringFormat automatically.
            using (StringFormat sf = new StringFormat())
            {
                //sf.Alignment = StringAlignment.Near;
                //sf.LineAlignment = StringAlignment.Near;
                //sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.None;
                //sf.FormatFlags = StringFormatFlags.NoWrap;
                using (Font f = new Font("Courier New", 10))
                {
                    e.Graphics.DrawString(e.ToolTipText, f,
                        SystemBrushes.ActiveCaptionText, e.Bounds, sf);
                }
            }

        }
AddinControlGui