ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Style Class / Merge Method
A Style object of the report element.
An external Style object obtained from the stylesheet. If this parameter is null, the default style will be used.
Example

In This Topic
    Merge Method (Style)
    In This Topic
    Merges a specified report item style with an external style from a stylesheet.
    Syntax
    'Declaration
     
    Public Shared Function Merge( _
       ByVal local As Style, _
       ByVal external As Style _
    ) As Style
    public static Style Merge( 
       Style local,
       Style external
    )

    Parameters

    local
    A Style object of the report element.
    external
    An external Style object obtained from the stylesheet. If this parameter is null, the default style will be used.

    Return Value

    A Style object representing the merged style.
    Example
    An example of how to merge with the default style: An example of how to merge with the different style:
    Style style = new Style { BackgroundColor = "White" };
    Style newStyle = Style.Merge(style, null);
    TextBox textBox = new TextBox();
    textBox.Style.TextAlign = TextAlign.Justify;
                
    Style style = new Style { BackgroundColor = "Red" };
                
    Style newStyle = Style.Merge(textBox.Style, style);
    See Also