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:


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


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