AsterixDisplayAnalyser.FormMain.SetLabelAttributes C# (CSharp) Метод

SetLabelAttributes() приватный Метод

private SetLabelAttributes ( GMap &Marker_In ) : void
Marker_In GMap
Результат void
        private void SetLabelAttributes(ref GMap.NET.WindowsForms.Markers.GMapMarkerCross Marker_In)
        {
            // Label Text Font and Size
            Marker_In.ToolTip.Font = new Font(LabelAttributes.TextFont, LabelAttributes.TextSize,
            FontStyle.Bold | FontStyle.Regular);
            Marker_In.ToolTip.Foreground = new SolidBrush(LabelAttributes.TextColor);

            // Label Border color
            Marker_In.ToolTip.Stroke = new Pen(new SolidBrush(LabelAttributes.LineColor), LabelAttributes.LineWidth);
            Marker_In.ToolTip.Stroke.DashStyle = LabelAttributes.LineStyle;

            // Label background color
            Marker_In.ToolTip.Fill = Brushes.Transparent;

            // Symbol color
            Marker_In.Pen = new Pen(new SolidBrush(LabelAttributes.TargetColor), LabelAttributes.TargetSize);
            Marker_In.Pen.DashStyle = LabelAttributes.TargetStyle;

            // Align the text
            Marker_In.ToolTip.Format.LineAlignment = StringAlignment.Center;
            Marker_In.ToolTip.Format.Alignment = StringAlignment.Near;
        }

Same methods

FormMain::SetLabelAttributes ( GMapTargetandLabel &Marker_In ) : void
FormMain