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

Class DrawingAdorner

Represents a drawing adorner.

Inheritance
System.Object
DiagramAdornerBase
DrawingAdorner
Inherited Members
DiagramAdornerBase.ResetTheme()
DiagramAdornerBase.OnInitialized(EventArgs)
DiagramAdornerBase.Position
DiagramAdornerBase.Rotation
Namespace: Telerik.Windows.Controls.Diagrams.Primitives
Assembly: Telerik.Windows.Controls.Diagrams.dll

Syntax

public class DrawingAdorner : DiagramAdornerBase, IThemable

Constructors

DrawingAdorner()

Initializes a new instance of the DrawingAdorner class.

Declaration
public DrawingAdorner()

Fields

FillProperty

Registers the Fill attached property.

Declaration
public static readonly DependencyProperty FillProperty
Field Value
System.Windows.DependencyProperty

FillRuleProperty

Registers the FillRule attached property.

Declaration
public static readonly DependencyProperty FillRuleProperty
Field Value
System.Windows.DependencyProperty

IsShapeClosedProperty

Registers the IsShapeClosed attached property.

Declaration
public static readonly DependencyProperty IsShapeClosedProperty
Field Value
System.Windows.DependencyProperty

IsShapeFilledProperty

Registers the IsShapeFilled attached property.

Declaration
public static readonly DependencyProperty IsShapeFilledProperty
Field Value
System.Windows.DependencyProperty

StrokeProperty

Registers the Stroke attached property.

Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
System.Windows.DependencyProperty

StrokeThicknessProperty

Registers the StrokeThickness attached property.

Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
System.Windows.DependencyProperty

Properties

Diagram

Gets or sets the hosting diagram.

Declaration
public override RadDiagram Diagram { get; set; }
Property Value
RadDiagram

Overrides
DiagramAdornerBase.Diagram

DrawingService

Gets or sets the drawing service.

Declaration
public IDrawingService DrawingService { get; }
Property Value
IDrawingService

Methods

GetFill(DependencyObject)

Gets the fill.

Declaration
public static Brush GetFill(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Windows.Media.Brush

GetFillRule(DependencyObject)

Gets the fill rule.

Declaration
public static FillRule GetFillRule(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Windows.Media.FillRule

GetIsShapeClosed(DependencyObject)

Gets the IsShapeClosed.

Declaration
public static bool GetIsShapeClosed(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Boolean

GetIsShapeFilled(DependencyObject)

Gets the IsShapeFilled.

Declaration
public static bool GetIsShapeFilled(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The object.

Returns
System.Boolean

GetStroke(DependencyObject)

Gets the stroke.

Declaration
public static Brush GetStroke(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Windows.Media.Brush

GetStrokeThickness(DependencyObject)

Gets the stroke thickness.

Declaration
public static double GetStrokeThickness(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Double

OnApplyTemplate()

Declaration
public override void OnApplyTemplate()

SetFill(DependencyObject, Brush)

Sets the fill.

Declaration
public static void SetFill(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject obj

System.Windows.Media.Brush value

SetFillRule(DependencyObject, FillRule)

Sets the fill rule.

Declaration
public static void SetFillRule(DependencyObject obj, FillRule value)
Parameters
System.Windows.DependencyObject obj

System.Windows.Media.FillRule value

SetIsShapeClosed(DependencyObject, Boolean)

Sets the IsShapeClosed.

Declaration
public static void SetIsShapeClosed(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetIsShapeFilled(DependencyObject, Boolean)

Sets the IsShapeFilled.

Declaration
public static void SetIsShapeFilled(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

System.Boolean value

SetStroke(DependencyObject, Brush)

Sets the stroke.

Declaration
public static void SetStroke(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject obj

System.Windows.Media.Brush value

SetStrokeThickness(DependencyObject, Double)

Sets the stroke thickness.

Declaration
public static void SetStrokeThickness(DependencyObject obj, double value)
Parameters
System.Windows.DependencyObject obj

System.Double value

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML 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.