WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PenSettings - WPF API Reference | Syncfusion

    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
    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: Syncfusion.UI.Xaml.ImageEditor
    Assembly: Syncfusion.SfImageEditor.WPF.dll
    Syntax
    public class PenSettings : 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 Description
    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 Description
    System.Boolean

    Fill

    Gets or sets the fill color for the shapes.

    Declaration
    public Brush Fill { get; set; }
    Property Value
    Type Description
    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 Description
    System.Boolean

    Opacity

    Gets or sets the opacity of the pen stroke.

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

    PathStrokeWidth

    Gets or sets the stroke thickness for the path.

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

    Stroke

    Gets or sets the stroke color of the pen.

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

    StrokeWidth

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

    Declaration
    public float StrokeWidth { get; set; }
    Property Value
    Type Description
    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 Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

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