Table of Contents

Class TextPortData

Namespace
H.Controls.Diagram.Extension
Assembly
H.Controls.Diagram.Extension.dll
public class TextPortData : PortData, INotifyPropertyChanged, IDable, IPortData, ILinkInitializer, IData, IDropable, ILinkDataCreator
Inheritance
TextPortData
Implements
Derived
Inherited Members
Extension Methods

Constructors

TextPortData()

public TextPortData()

TextPortData(string, PortType)

public TextPortData(string nodeID, PortType portType)

Parameters

nodeID string
portType PortType

Properties

Data

[Browsable(false)]
public Geometry Data { get; set; }

Property Value

Geometry

Fill

[Display(Name = "背景颜色", GroupName = "样式")]
public Brush Fill { get; set; }

Property Value

Brush

FontFamily

[Display(Name = "字体", GroupName = "文本")]
public FontFamily FontFamily { get; set; }

Property Value

FontFamily

FontSize

[Display(Name = "字号", GroupName = "文本")]
public double FontSize { get; set; }

Property Value

double

FontStretch

[Display(Name = "字体展开", GroupName = "文本")]
public FontStretch FontStretch { get; set; }

Property Value

FontStretch

FontStyle

[Display(Name = "字体样式", GroupName = "文本")]
public FontStyle FontStyle { get; set; }

Property Value

FontStyle

FontWeight

[Display(Name = "字体加粗", GroupName = "文本")]
public FontWeight FontWeight { get; set; }

Property Value

FontWeight

Foreground

[Display(Name = "文本颜色", GroupName = "样式")]
public Brush Foreground { get; set; }

Property Value

Brush

Icon

[Display(Name = "图标", GroupName = "常用")]
public override string Icon { get; set; }

Property Value

string

Stroke

[Display(Name = "边框颜色", GroupName = "样式")]
public Brush Stroke { get; set; }

Property Value

Brush

StrokeThickness

[Display(Name = "边框宽度", GroupName = "样式")]
public double StrokeThickness { get; set; }

Property Value

double

Text

[Display(Name = "文本", GroupName = "常用")]
public string Text { get; set; }

Property Value

string

TextMargin

[Display(Name = "文本边距", GroupName = "样式")]
public Thickness TextMargin { get; set; }

Property Value

Thickness

Methods

ApplayStyleTo(IPortData)

public override void ApplayStyleTo(IPortData to)

Parameters

to IPortData

GetGeometry()

protected virtual Geometry GetGeometry()

Returns

Geometry

LoadDefault()

public override void LoadDefault()