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 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
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TwoStatesButtonWidget

Represents a widget that can be in one of two states: ON or OFF, such as checkboxes and radio buttons.

Inheritance
System.Object
FixedDocumentElementBase
Annotation
ContentAnnotationBase
Widget
Widget<ButtonAppearanceCharacteristics>
TwoStatesButtonWidget
RadioButtonWidget
Inherited Members
Widget<ButtonAppearanceCharacteristics>.AppearanceCharacteristics
Widget.HighlightingMode
Widget.TextProperties
Widget.Field
Widget.Type
Widget.Actions
ContentAnnotationBase.EnsureContentIsUpToDate()
Annotation.Rect
Annotation.Border
Annotation.IsPrintable
Annotation.StructureTag
FixedDocumentElementBase.Parent
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.Windows.Documents.Fixed.Model.Annotations
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public abstract class TwoStatesButtonWidget : Widget<ButtonAppearanceCharacteristics>, IFixedDocumentElement, IInstanceIdOwner, IContextClonable<Annotation>, IStructuralElement

Properties

OffStateContent

Represents the content source displayed when the widget is in its OFF state. This content has higher priority than widget appearance characteristics and text properties and is displayed by default when opening the document in PDF viewers.

Declaration
public AnnotationContentSource OffStateContent { get; }
Property Value
AnnotationContentSource

The annotation content source for the OFF state appearance.

OnStateContent

Represents the content source displayed when the widget is in its ON state. This content has higher priority than widget appearance characteristics and text properties and is displayed by default when opening the document in PDF viewers.

Declaration
public AnnotationContentSource OnStateContent { get; }
Property Value
AnnotationContentSource

The annotation content source for the ON state appearance.

WidgetContentType

Gets the widget content type, which is always TwoStatesContent for two-state button widgets.

Declaration
public override sealed WidgetContentType WidgetContentType { get; }
Property Value
WidgetContentType

Returns TwoStatesContent.

Overrides
Widget.WidgetContentType

Methods

RecalculateContent()

Recalculates the widget's AnnotationContentSource content based on widget text properties and dynamic appearance characteristics.

Declaration
public override sealed void RecalculateContent()
Overrides
ContentAnnotationBase.RecalculateContent()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.