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 FloatingShapeBase

Represents a base for all shape elements in the RadSpreadsheet.

Inheritance
System.Object
FloatingShapeBase
SpreadsheetComment
FloatingResizableShapeBase
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.Windows.Documents.Spreadsheet.Model.Shapes
Assembly: Telerik.Windows.Documents.Spreadsheet.dll

Syntax

public abstract class FloatingShapeBase : ICopyable<FloatingShapeBase>

Properties

Description

Gets or sets the description of the shape.

Declaration
public string Description { get; set; }
Property Value
System.String

The description of the shape.

FloatingShapeType

Gets the type of the shape.

Declaration
public abstract FloatingShapeType FloatingShapeType { get; }
Property Value
FloatingShapeType

Id

Gets the id of the shape, which is unique for the worksheet it belongs to.

Declaration
public int Id { get; }
Property Value
System.Int32

The id of the shape.

LockAspectRatio

Gets or sets the value indicating whether the aspect ratio between the width and height should remain constant.

Declaration
public bool LockAspectRatio { get; set; }
Property Value
System.Boolean

The value indicating whether the aspect ratio between the width and height should remain constant.

Name

Gets or sets the name of the shape.

Declaration
public string Name { get; set; }
Property Value
System.String

The name of the shape.

Worksheet

Gets the worksheet assigned to the shape.

Declaration
public Worksheet Worksheet { get; }
Property Value
Worksheet

The worksheet.

Methods

OnShapeChanged()

Called when the value of any of the shape properties is changed.

Declaration
protected void OnShapeChanged()

SetHeight(Boolean, Double, Boolean)

Sets the height of the shape.

Declaration
public void SetHeight(bool respectLockAspectRatio, double height, bool adjustCellIndex = false)
Parameters
System.Boolean respectLockAspectRatio

A value indicating whether the aspect ratio lock should be respected.

System.Double height

The new height.

System.Boolean adjustCellIndex

A value indicating whether the top cell index and offset of the image should be adjusted.

SetWidth(Boolean, Double, Boolean)

Sets the width of the shape.

Declaration
public void SetWidth(bool respectLockAspectRatio, double width, bool adjustCellIndex = false)
Parameters
System.Boolean respectLockAspectRatio

A value indicating whether the aspect ratio lock should be respected.

System.Double width

The new width.

System.Boolean adjustCellIndex

A value indicating whether the top cell index and offset of the image should be adjusted.

Events

ShapeChanged

Occurs when the value of any of the shape properties is changed.

Declaration
public event EventHandler ShapeChanged
Event Type
System.EventHandler

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.