Alsing.SourceCode.TextStyle.Clone C# (CSharp) Метод

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

public Clone ( ) : object
Результат object
        public object Clone()
        {
            var ts = new TextStyle
                     {
                         //TODO: verify if this actually works
                         BackColor = BackColor,
                         Bold = Bold,
                         ForeColor = ForeColor,
                         Italic = Italic,
                         Underline = Underline,
                         Name = Name
                     };
            return ts;
        }

Usage Example

Пример #1
0
        public TextStyleDesignerDialog(TextStyle Style)
        {
            _Style    = Style;
            _TmpStyle = (TextStyle)Style.Clone();

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            pgStyles.SelectedObject = _TmpStyle;
            lblCaption.Text         = _Style.ToString();
            PreviewStyle();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
All Usage Examples Of Alsing.SourceCode.TextStyle::Clone