Version

Clone Method (FormattedText)

Creates a new FormattedText that is a copy of this one.
Syntax
'Declaration
 
Public Function Clone() As FormattedText
public FormattedText Clone()

Return Value

A new FormattedText that is a copy of this one.
Remarks

This should be used if the same formatted text needs to be used in multiple shapes. The FormattedText class can only exist as the WorksheetShapeWithText.Text of one shape at a time. If the FormattedText is already the text of a shape, and needs to be set as the text of another shape, clone the FormattedText and set the returned clone as text of the shape.

The cloned FormattedText only takes its original configuration for this instance. If this instance is cloned and than changed, the clone will not be changed as well; it will remain as it was when it was cloned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also