skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class StyleGroup

Inheritance
System.Object
StyleGroup
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class StyleGroup

Constructors

StyleGroup()

Initializes a new instance of the StyleGroup class.

Declaration
public StyleGroup()

StyleGroup(String)

Initializes a new instance of the StyleGroup class by specifying an element type. Creates a new ElementTypeDefault registration.

Declaration
public StyleGroup(string elementType)
Parameters
System.String elementType

The element type.

StyleGroup(StyleGroup)

Initializes a new instance of the StyleGroup class by using an existing StyleGroup instance.

Declaration
public StyleGroup(StyleGroup styleGroup)
Parameters
StyleGroup styleGroup

The StyleGroup to be used as a source.

StyleGroup(StyleRegistration)

Initializes a new instance of the StyleGroup class by adding a default style registration.

Declaration
public StyleGroup(StyleRegistration registration)
Parameters
StyleRegistration registration

The default style registration.

Properties

PropertySettingGroups

Gets a collection with property setting groups for the style group.

Declaration
public List<PropertySettingGroup> PropertySettingGroups { get; }
Property Value
System.Collections.Generic.List<PropertySettingGroup>

Registrations

Gets a collection with style registrations for the style group.

Declaration
public List<StyleRegistration> Registrations { get; }
Property Value
System.Collections.Generic.List<StyleRegistration>

Methods

Combine(StyleGroup, Boolean)

Combines the style group with a specified style group by adding its property setting groups.

Declaration
public void Combine(StyleGroup group, bool replaceExistingStyles)
Parameters
StyleGroup group

style group to combine with.

System.Boolean replaceExistingStyles

Specifies whether to replace existing styles.

CreateStyleSheet(RadObject)

Creates a new style sheet based on this style group for the specified element.

Declaration
public StyleSheet CreateStyleSheet(RadObject element)
Parameters
RadObject element

The element.

Returns
StyleSheet

An instance of StyleSheet if successful.

CreateTheme(String)

Creates a new theme which is a cloned version of all styles existing in this style group.

Declaration
public Theme CreateTheme(string name)
Parameters
System.String name

The name of the new theme.

Returns
Theme

An instance of the Theme class if successfull.

IsCompatible(String)

Determines whether the style group is compatible with the specified control type.

Declaration
public bool IsCompatible(string controlType)
Parameters
System.String controlType

The control type.

Returns
System.Boolean

true if the style group is compatible.

IsCompatible(Control)

Determines whether the style group is compatible with the specified control.

Declaration
public bool IsCompatible(Control control)
Parameters
System.Windows.Forms.Control control

The control.

Returns
System.Boolean

true if the style group is compatible.

IsCompatible(IStylableNode)

Determines whether the style group is compatible with the specified stylable node.

Declaration
public bool IsCompatible(IStylableNode item)
Parameters
IStylableNode item

The stylable node.

Returns
System.Boolean

true if the style group is compatible.

IsCompatible(StyleGroup)

Determines whether the style group is compatible with the specified style group.

Declaration
public bool IsCompatible(StyleGroup dstGroup)
Parameters
StyleGroup dstGroup

The stye group.

Returns
System.Boolean

true if the style group is compatible.

SaveXML(String, String)

Saves all style settings presented in this group in a file with XML formatting.

Declaration
public void SaveXML(string themeName, string fileName)
Parameters
System.String themeName

The theme name to be stored in the file.

System.String fileName

The name of the file to be created.

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.