• Product Bundles

    DevCraft

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

    • Conversational UI
    • 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 ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin
    Desktop
    UI for WinForms UI for WPF UI for WinUI UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore Fiddler Everywhere
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler Classic 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
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Struct FontWeight

Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.

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

Syntax

public struct FontWeight : IFormattable

Methods

Compare(FontWeight, FontWeight)

Compares two instances of System.Windows.FontWeight.

Declaration
public static int Compare(FontWeight left, FontWeight right)
Parameters
FontWeight left

The first System.Windows.FontWeight object to compare.

FontWeight right

The second System.Windows.FontWeight object to compare.

Returns
System.Int32

An System.Int32 value that indicates the relationship between the two instances of System.Windows.FontWeight. When the return value is less than zero, left is less than right. When this value is zero, it indicates that both operands are equal. When the value is greater than zero, it indicates that left is greater than right.

Equals(Object)

Determines whether the current System.Windows.FontWeight object is equal to a specified object.

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

The System.Object to compare for equality.

Returns
System.Boolean

true if the two instances are equal; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

Equals(FontWeight)

Determines whether the current System.Windows.FontWeight object is equal to a specified System.Windows.FontWeight object.

Declaration
public bool Equals(FontWeight obj)
Parameters
FontWeight obj

The instance of System.Windows.FontWeight to compare for equality.

Returns
System.Boolean

true if the two instances are equal; otherwise, false.

FromOpenTypeWeight(Int32)

Creates a new instance of System.Windows.FontWeight that corresponds to the OpenType usWeightClass value.

Declaration
public static FontWeight FromOpenTypeWeight(int weightValue)
Parameters
System.Int32 weightValue

An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenType specification.

Returns
FontWeight

A new instance of System.Windows.FontWeight.

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()

ToOpenTypeWeight()

Returns a value that represents the OpenType usWeightClass for the System.Windows.FontWeight object.

Declaration
public int ToOpenTypeWeight()
Returns
System.Int32

An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenType specification.

ToString()

Returns a text string that represents the value of the System.Windows.FontWeight 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.FontWeight object, such as "Light", "Normal", or "UltraBold".

Overrides
System.ValueType.ToString()

Operators

Equality(FontWeight, FontWeight)

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

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

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

FontWeight right

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

Returns
System.Boolean

true if the instances of System.Windows.FontWeight are equal; otherwise, false.

GreaterThan(FontWeight, FontWeight)

Evaluates two instances of System.Windows.FontWeight to determine whether one instance is greater than the other.

Declaration
public static bool operator>(FontWeight left, FontWeight right)
Parameters
FontWeight left

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

FontWeight right

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

Returns
System.Boolean

true if left is greater than right; otherwise, false.

GreaterThanOrEqual(FontWeight, FontWeight)

Evaluates two instances of System.Windows.FontWeight to determine whether one instance is greater than or equal to the other.

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

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

FontWeight right

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

Returns
System.Boolean

true if left is greater than or equal to right; otherwise, false.

Inequality(FontWeight, FontWeight)

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

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

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

FontWeight right

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

Returns
System.Boolean

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

LessThan(FontWeight, FontWeight)

Evaluates two instances of System.Windows.FontWeight to determine whether one instance is less than the other.

Declaration
public static bool operator <(FontWeight left, FontWeight right)
Parameters
FontWeight left

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

FontWeight right

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

Returns
System.Boolean

true if left is less than right; otherwise, false.

LessThanOrEqual(FontWeight, FontWeight)

Evaluates two instances of System.Windows.FontWeight to determine whether one instance is less than or equal to the other.

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

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

FontWeight right

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

Returns
System.Boolean

true if left is less than or equal to right; otherwise, false.

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.