/// <summary> /// Uses the token objects property editor. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param> /// <returns>EditorDescriptorsFactory.</returns> /// <exception cref="System.ArgumentNullException">editorDescriptorsFactory</exception> public static EditorDescriptorsFactory UseTokenObjectsPropertyEditors <T>(this EditorDescriptorsFactory editorDescriptorsFactory) { _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory)); editorDescriptorsFactory.RegisterPropertyEditorAlias( Xenial.Framework.TokenEditors.PubTernal.TokenEditorAliases.TokenObjectsPropertyEditor, typeof(IList <T>), true ); editorDescriptorsFactory.RegisterPropertyEditorAlias( Xenial.Framework.TokenEditors.PubTernal.TokenEditorAliases.TokenObjectsPropertyEditor, typeof(BindingList <T>), true ); return(editorDescriptorsFactory); }
/// <summary> /// Uses the web view HTML string property editor. /// </summary> /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param> /// <returns>EditorDescriptorsFactory.</returns> /// <exception cref="ArgumentNullException">editorDescriptorsFactory</exception> /// <autogeneratedoc /> public static EditorDescriptorsFactory UseWebViewHtmlStringPropertyEditor(this EditorDescriptorsFactory editorDescriptorsFactory) { _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory)); editorDescriptorsFactory.RegisterPropertyEditorAlias( Xenial.Framework.WebView.PubTernal.WebViewEditorAliases.WebViewHtmlStringPropertyEditor, typeof(string), true ); return(editorDescriptorsFactory); }
/// <summary> /// Uses the token objects property editor. /// </summary> /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param> /// <returns>EditorDescriptorsFactory.</returns> /// <exception cref="System.ArgumentNullException">editorDescriptorsFactory</exception> /// <autogeneratedoc /> public static EditorDescriptorsFactory UseStepProgressEnumPropertyEditors(this EditorDescriptorsFactory editorDescriptorsFactory) { _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory)); editorDescriptorsFactory.RegisterPropertyEditorAlias( Xenial.Framework.StepProgressEditors.PubTernal.StepProgressEditorAliases.StepProgressEnumPropertyEditor, typeof(Enum), true ); return(editorDescriptorsFactory); }