Click or drag to resize

PlotGroupStyleGetFirstStyleToApplyImplementingInterfaceT Method

Looks first in externalGroups, then in localGroups for the type of PlotGroupStyle to apply. In contrast to GetStyleToApplyT(IPlotGroupStyleCollection, IPlotGroupStyleCollection), we are searching here only for an interface, and return the first plot group style found that implements that interface. If an instance with this interface found, this instance is returned. If found, the containig collection is informed that this group style will be applied now by calling OnBeforeApplication.

Namespace: Altaxo.Graph.Plot.Groups
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static T GetFirstStyleToApplyImplementingInterface<T>(
	IPlotGroupStyleCollection externalGroups,
	IPlotGroupStyleCollection localGroups
)

Parameters

externalGroups  IPlotGroupStyleCollection
First collection to look for the group style.
localGroups  IPlotGroupStyleCollection
Second collection to look for the group style.

Type Parameters

T
Type of the interface to look for.

Return Value

T
The instance of the plot group style that implements the interface (if found), or null otherwise.
See Also