Gets the preferred size of the label with respect to its current contents and the implementation of the visualization.

Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
SizeD PreferredSize { get; }
Visual Basic
ReadOnly Property PreferredSize As SizeD Get

Remarks

Often times the layout's size will be the same as the preferred size, but it's up to the implementation of the ILabelModel to interpret it differently. In order to set a different preferred size for this label instance use IGraph's SetPreferredSize(ILabel, SizeD) method.

See Also