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 UI for Silverlight UI for PHP UI for JSP
    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 UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Struct FontStyle

Defines a structure that represents the style of a font face as normal, italic, or oblique.

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public struct FontStyle : IFormattable

Methods

Equals(Object)

Compares an System.Object with the current System.Windows.FontStyle instance for equality.

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

An System.Object value that represents the System.Windows.FontStyle to compare for equality.

Returns
System.Boolean

true to show the two instances are equal; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

Equals(FontStyle)

Compares a System.Windows.FontStyle with the current System.Windows.FontStyle instance for equality.

Declaration
public bool Equals(FontStyle obj)
Parameters
FontStyle obj

An instance of System.Windows.FontStyle to compare for equality.

Returns
System.Boolean

true to show the two instances are equal; otherwise, false.

GetHashCode()

Retrieves the hash code for this object.

Declaration
public override int GetHashCode()
Returns
System.Int32

A 32-bit hash code, which is a signed integer.

Overrides
System.ValueType.GetHashCode()

ToString()

Creates a System.String that represents the current System.Windows.FontStyle object and is based on the System.Globalization.CultureInfo.CurrentCulture property information.

Declaration
public override string ToString()
Returns
System.String

A System.String that represents the value of the System.Windows.FontStyle object, such as "Normal", "Italic", or "Oblique".

Overrides
System.ValueType.ToString()

Operators

Equality(FontStyle, FontStyle)

Compares two instances of System.Windows.FontStyle for equality.

Declaration
public static bool operator ==(FontStyle left, FontStyle right)
Parameters
FontStyle left

The first instance of System.Windows.FontStyle to compare.

FontStyle right

The second instance of System.Windows.FontStyle to compare.

Returns
System.Boolean

true to show the specified System.Windows.FontStyle objects are equal; otherwise, false.

Implicit(FontStyle to FontStyle)

Declaration
[Obsolete("This operator is deprecated. It will be removed in R3 2024.")]
public static implicit operator FontStyle(FontStyle style)
Parameters
System.Drawing.FontStyle style

Returns
FontStyle

Implicit(FontStyle to FontStyle)

Declaration
[Obsolete("This operator is deprecated. It will be removed in R3 2024.")]
public static implicit operator FontStyle(FontStyle style)
Parameters
FontStyle style

Returns
System.Drawing.FontStyle

Inequality(FontStyle, FontStyle)

Evaluates two instances of System.Windows.FontStyle to determine inequality.

Declaration
public static bool operator !=(FontStyle left, FontStyle right)
Parameters
FontStyle left

The first instance of System.Windows.FontStyle to compare.

FontStyle right

The second instance of System.Windows.FontStyle to compare.

Returns
System.Boolean

false to show left is equal to right; otherwise, true.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider)

For a description of this member, see System.IFormattable.ToString(System.String, System.IFormatProvider).

Declaration
string IFormattable.ToString(string format, IFormatProvider provider)
Parameters
System.String format

The System.String specifying the format to use.-or- null to use the default format defined for the type of the System.IFormattable implementation.

System.IFormatProvider provider

The System.IFormatProvider to use to format the value.-or- null to obtain the numeric format information from the current locale setting of the operating system.

Returns
System.String

A System.String containing the value of the current instance in the specified format.

Implements
System.IFormattable.ToString(System.String, System.IFormatProvider)

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
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.