alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class PenSettings

    Holds the settings to customize shapes and path(free hand drawing).

    Inheritance
    System.Object
    PenSettings
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.UI.Xaml.ImageEditor
    Assembly: Syncfusion.SfImageEditor.WPF.dll
    Syntax
    public class PenSettings : Object, INotifyPropertyChanged

    Constructors

    PenSettings()

    Gets or sets a new instance of the PenSettings class.

    Declaration
    public PenSettings()

    Properties

    Bounds

    Gets or sets bounds for the shapes.

    Declaration
    public Rect Bounds { get; set; }
    Property Value
    Type
    System.Windows.Rect

    EnableDrag

    Gets or sets a value indicating whether shape can be dragged or not.

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

    Fill

    Gets or sets the fill color for the shapes.

    Declaration
    public Brush Fill { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    IsResizable

    Gets or sets a value that indicates whether to enable the resizing option for the shapes or not.

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

    Opacity

    Gets or sets the opacity of the pen stroke.

    Declaration
    public float Opacity { get; set; }
    Property Value
    Type
    System.Single

    PathStrokeWidth

    Gets or sets the stroke thickness for the path.

    Declaration
    public float PathStrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    Stroke

    Gets or sets the stroke color of the pen.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    StrokeWidth

    Gets or sets the stroke thickness for the shapes / path.

    Declaration
    public float StrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    Methods

    OnPropertyChanged(String)

    Method gets called when the property value gets changed.

    Declaration
    protected void OnPropertyChanged(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Events

    PropertyChanged

    Raised whenever a property gets changed.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved