alexa
menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class CodeBlockSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    CodeBlockSettingsBuilder
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.EJ2.BlockEditor
    Assembly: Syncfusion.AspNetMvc.BlockEditor.dll
    Syntax
    public class CodeBlockSettingsBuilder : ControlBuilder

    Constructors

    CodeBlockSettingsBuilder()

    Declaration
    public CodeBlockSettingsBuilder()

    CodeBlockSettingsBuilder(CodeBlockSettings)

    Declaration
    public CodeBlockSettingsBuilder(CodeBlockSettings model)
    Parameters
    Type Name Description
    CodeBlockSettings model

    Methods

    DefaultLanguage(String)

    Specifies the default language to use for syntax highlighting. This is the language that will be selected by default in the language selector dropdown.

    Declaration
    public CodeBlockSettingsBuilder DefaultLanguage(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    CodeBlockSettingsBuilder

    Languages(Object)

    Specifies the languages available for syntax highlighting. This is an array of objects, each containing a language value and a label.

    Declaration
    public CodeBlockSettingsBuilder Languages(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    CodeBlockSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved