CmisSync.Link.Link C# (CSharp) Метод

Link() публичный Метод

public Link ( string title, string address ) : System
title string
address string
Результат System
        public Link(string title, string address) {
            FontSize   = 11;
            Cursor     = Cursors.Hand;
            Foreground = new SolidColorBrush(Color.FromRgb (135, 178, 227));

            TextDecoration underline = new TextDecoration() {
                Pen              = new Pen (new SolidColorBrush (Color.FromRgb (135, 178, 227)), 1),
                PenThicknessUnit = TextDecorationUnit.FontRecommended
            };

            TextDecorationCollection collection = new TextDecorationCollection ();
            collection.Add(underline);

            TextBlock text_block = new TextBlock() {
                Text            = title,
                TextDecorations = collection
            };

            Content = text_block;

            MouseUp += delegate {
                Process.Start (new ProcessStartInfo (address));
            };
        }
    }
Link