Search
Control.find Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
Control Class
Control Members
Control Constructor
Control Methods
attach Method
detach Method
dispose Method
draw Method
find Method
render Method
Control Properties
Control Events
DateFormats Class
DateSettings Class
EventDispatcher Class
IdGenerator Class
Locale Class
NotifyCollectionChangedAction Class
NotifyCollectionChangedEventArgs Class
NotifyCollectionChangingEventArgs Class
PropertyEventArgs Class
UIControl Class
Unit Class
UnitType Enumeration
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Returns the control with the specified ID.

Namespace: MindFusion.Common
Assembly: Control.js

## Syntax

JavaScript Copy Code
static find (id)

### Parameters

id

  String. The ID.

### Return Value

Control. The control with the specified ID if found, or null otherwise.

## Example

The following code uses the find method to search for an oval Gauge that must be disposed because it is no longer rendered on the web page.

JavaScript Copy Code
function stopClock() { clearInterval(timerId); document.getElementById("clock").parentNode.style.visibility = "hidden"; var clock = g.OvalGauge.find("clock"); if (clock) clock.dispose(); }

## See Also

Control Members
Control Class
MindFusion.Common Namespace