skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

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

    Mobile

    UI for .NET MAUI

    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 Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free 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
    • 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

Struct FontStretch

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 FontStretch : IFormattable

Methods

Compare(FontStretch, FontStretch)

Compares two instances of System.Windows.FontStretch objects.

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

The first System.Windows.FontStretch object to compare.

FontStretch right

The second System.Windows.FontStretch object to compare.

Returns
System.Int32

An System.Int32 value that represents the relationship between the two instances of System.Windows.FontStretch.

Equals(Object)

Compares a System.Object with the current System.Windows.FontStretch object.

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

The instance of the System.Object to compare for equality.

Returns
System.Boolean

true if two instances are equal; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

Equals(FontStretch)

Compares a System.Windows.FontStretch object with the current System.Windows.FontStretch object.

Declaration
public bool Equals(FontStretch obj)
Parameters
FontStretch obj

The instance of the System.Windows.FontStretch object to compare for equality.

Returns
System.Boolean

true if two instances are equal; otherwise, false.

FromOpenTypeStretch(Int32)

Creates a new instance of System.Windows.FontStretch that corresponds to the OpenType usStretchClass value.

Declaration
public static FontStretch FromOpenTypeStretch(int stretchValue)
Parameters
System.Int32 stretchValue

An integer value between one and nine that corresponds to the usStretchValue definition in the OpenType specification.

Returns
FontStretch

A new instance of System.Windows.FontStretch.

GetHashCode()

Retrieves the hash code for this object.

Declaration
public override int GetHashCode()
Returns
System.Int32

An System.Int32 value representing the hash code for the object.

Overrides
System.ValueType.GetHashCode()

ToOpenTypeStretch()

Returns a value that represents the OpenType usStretchClass for this System.Windows.FontStretch object.

Declaration
public int ToOpenTypeStretch()
Returns
System.Int32

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

ToString()

Creates a System.String representation of the current System.Windows.FontStretch object based on the current culture.

Declaration
public override string ToString()
Returns
System.String

A System.String value representation of the object.

Overrides
System.ValueType.ToString()

Operators

Equality(FontStretch, FontStretch)

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

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

First instance of System.Windows.FontStretch to compare.

FontStretch right

Second instance of System.Windows.FontStretch to compare.

Returns
System.Boolean

true when the specified System.Windows.FontStretch objects are equal; otherwise, false.

GreaterThan(FontStretch, FontStretch)

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

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

First instance of System.Windows.FontStretch to compare.

FontStretch right

Second instance of System.Windows.FontStretch to compare.

Returns
System.Boolean

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

GreaterThanOrEqual(FontStretch, FontStretch)

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

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

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

FontStretch right

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

Returns
System.Boolean

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

Inequality(FontStretch, FontStretch)

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

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

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

FontStretch right

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

Returns
System.Boolean

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

LessThan(FontStretch, FontStretch)

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

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

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

FontStretch right

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

Returns
System.Boolean

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

LessThanOrEqual(FontStretch, FontStretch)

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

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

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

FontStretch right

The second instance of System.Windows.FontStretch 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>>)
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.