Version

TargetType Property

Returns/sets an enumeration that identifies the type of object (e.g. tool or RibbonGroup) that is represented by the QatPlaceholderTool.
Syntax
'Declaration
 
Public Property TargetType As QatPlaceholderToolType
public QatPlaceholderToolType TargetType {get; set;}
Remarks

Depending on the value of the TargetType property, the RibbonToolHelper.IdProperty is used to locate the tool or RibbonGroupthat has been defined somewhere on the XamRibbon and which will be cloned and displayed inside this QatPlaceholderTool.

Example
QatPlaceholderTool TargetType property

' Creating ButtonTool 
Dim btnToolCopy As New ButtonTool() 
btnToolCopy.Id = "copyTool" 

' Adding ButtonTool to the QAT 
Dim qatToolCopy As New QatPlaceholderTool() 
qatToolCopy.TargetId = "copyTool" 
' btnToolCopy.Id 
qatToolCopy.TargetType = QatPlaceholderToolType.Tool 
xamRibbon.QuickAccessToolbar.Items.Add(qatToolCopy)
// Creating ButtonTool
ButtonTool btnToolCopy = new ButtonTool();
btnToolCopy.Id = "copyTool";

// Adding ButtonTool to the QAT
QatPlaceholderTool qatToolCopy = new QatPlaceholderTool();
qatToolCopy.TargetId = "copyTool"; // btnToolCopy.Id
qatToolCopy.TargetType = QatPlaceholderToolType.Tool;
xamRibbon.QuickAccessToolbar.Items.Add(qatToolCopy);
<igRibbon:XamRibbon.QuickAccessToolbar>
    
<igRibbon:QuickAccessToolbar>
        
<igRibbon:QatPlaceholderTool TargetId="undoTool" TargetType="Tool"></igRibbon:QatPlaceholderTool>
        
<igRibbon:QatPlaceholderTool TargetId="redoTool"></igRibbon:QatPlaceholderTool>
        
<igRibbon:QatPlaceholderTool TargetId="copyTool"></igRibbon:QatPlaceholderTool>
        
<igRibbon:QatPlaceholderTool TargetId="cutTool" ></igRibbon:QatPlaceholderTool>
        
<igRibbon:QatPlaceholderTool TargetId="Text Style" TargetType="RibbonGroup"></igRibbon:QatPlaceholderTool>
    
</igRibbon:QuickAccessToolbar>
</igRibbon:XamRibbon.QuickAccessToolbar>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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