/// <summary> /// Factory for the OverviewMargin. /// </summary> /// <param name="textViewHost">The IWpfTextViewHost in which this margin will be displayed.</param> /// <param name="myProvider">Will be queried for various imported components.</param> public static OverviewMargin Create(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin, OverviewMarginProvider myProvider) { OverviewMargin margin = new OverviewMargin(textViewHost, containerMargin, myProvider); margin.Initialize(); return(margin); }
/// <summary> /// Create an instance of the OverviewMargin in the specified <see cref="IWpfTextViewHost"/>. /// </summary> /// <param name="textViewHost">The <see cref="IWpfTextViewHost"/> in which the OverviewMargin will be displayed.</param> /// <returns>The newly created OverviewMargin.</returns> public IWpfTextViewMargin CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin) { return(OverviewMargin.Create(textViewHost, containerMargin, this)); }