Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.Data.Stats Namespace / StatFunction Class / InitializeFromInstance Method
A reference to the StatFunction whose property values will be copied to the current instance of the same-type statistical function.


In This Topic
    InitializeFromInstance Method (StatFunction)
    In This Topic
    Initializes the properties of the current instance of the same-type statistical function when a new instance of the same function needs to be created.
    Syntax
    'Declaration
     
    Protected Friend Overridable Sub InitializeFromInstance( _
       ByVal source As StatFunction _
    ) 
    'Usage
     
    Dim instance As StatFunction
    Dim source As StatFunction
     
    instance.InitializeFromInstance(source)
    protected internal virtual void InitializeFromInstance( 
       StatFunction source
    )

    Parameters

    source
    A reference to the StatFunction whose property values will be copied to the current instance of the same-type statistical function.
    Remarks

    The InitializeFromInstance method will only be called when child results are calculated.

    When deriving from the StatFunction class, the InitializeFromInstance method should be overridden only if a property that affects the end result is added, in order to include the new property in the initializing process (e.g., the IncludeNullValues property of the CountFunction class). The property should be initialized using the value of the source statistical function received as a parameter after the base implementation has been called. In this case, the IsEquivalent and GetEquivalenceKey methods should also be overridden.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also