/// <summary>
 /// Retrieves the <see cref="IOptionBuilder"/> to use for the given style.
 /// </summary>
 /// <remarks>
 /// This implementation simply delegates to <see cref="IOptionBuilderContext.GetOptionBuilder(object)"/>.
 /// </remarks>
 /// <param name="context">The context to use.</param>
 /// <param name="style">The current style instance.</param>
 /// <returns>The builder or <see langword="null"/>.</returns>
 protected virtual IOptionBuilder GetStyleOptionBuilder(IOptionBuilderContext context, ILabelStyle style)
 {
     return(context.GetOptionBuilder(style));
 }
示例#2
0
 /// <summary>
 /// Method that retrieves an <see cref="IOptionBuilder"/> instance for the given label and context.
 /// </summary>
 /// <remarks>
 /// This implementation simply delegates to <see cref="IOptionBuilderContext.GetOptionBuilder(object)"/>.
 /// </remarks>
 /// <param name="context">The context to use.</param>
 /// <param name="label">The label instance.</param>
 /// <returns>The builder to use or <see langword="null"/>.</returns>
 protected virtual IOptionBuilder GetLabelOptionBuilder(IOptionBuilderContext context, ILabel label)
 {
     return(context.GetOptionBuilder(label));
 }
 public IOptionBuilder GetOptionBuilder(object subject)
 {
     return(parent.GetOptionBuilder(subject));
 }