AmitDiwan has Published 11365 Articles

Char.IsControl(String, Int32) Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 08:06:22

331 Views

The Char.IsControl(String, Int32) method in C# is used to indicate whether the character at the specified position in a specified string is categorized as a control character.Syntaxpublic static bool IsControl (string str, int index);Above, str is a string. The index parameter is the position of the character to evaluate in ... Read More

Array.ConstrainedCopy() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 08:01:39

191 Views

The Array.ConstrainedCopy() method in C# is used to copy a range of elements from an Array starting at the specified source index and pastes them to another Array starting at the specified destination index.Syntaxpublic static void ConstrainedCopy (Array sourceArr, int sourceIndex, Array destinationArr, int destinationIndex, int length);Here, sourceArr − The ... Read More

Dictionary.ContainsValue() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 07:59:08

3K+ Views

The Dictionary.ContainsValue() method in C# is used to check whether the Dictionary contains a specific value or not.Syntaxpublic bool ContainsValue (TValue val);Above, Val is the value to be searched.Let us now see an example to implement the Dictionary.ContainsValue() method −Exampleusing System; using System.Collections.Generic; public class Demo {    public static ... Read More

Dictionary.ContainsKey() Method in C#

AmitDiwan

AmitDiwan

Updated on 04-Nov-2019 07:49:19

2K+ Views

The Dictionary.ContainsKey() method in C# checks whether the Dictionary

HTML DOM Video currentSrc Property

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 07:08:30

65 Views

The HTML DOM Video currentSrc property returns a string corresponding to the url of the video.Following is the syntax −Returning string valuemediaObject.currentSrcLet us see an example of HTML DOM Video currentSrc property −Example HTML DOM Video currentSrc    * {       padding: 2px;     ... Read More

HTML DOM value Property

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:38:17

169 Views

The HTML DOM value property returns a string corresponding to the value of the attribute of an element.Following is the syntax −Returning string valueelementAttribute.valueLet us see an example of HTML DOM value property −Example Live Demo HTML DOM value    * {       padding: 2px;   ... Read More

HTML DOM URL Property

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:34:43

63 Views

The HTML DOM URL property returns a string corresponding to the url of the document.Following is the syntax −Returning string valuedocument.URLLet us see an example of HTML DOM URL property −Example Live Demo HTML DOM URL    form {       width:70%;       margin: 0 ... Read More

HTML DOM Ul Object

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:32:25

79 Views

The HTML DOM Ul Object in HTML represents the element.Creating a elementvar ulObject = document.createElement(“UL”)Here, “ulObject” can have the following properties but are not supported in HTML5 −PropertyDescriptioncompactItsets/returns whether the unordered list should be displayedsmaller than usualtypeItsets/returns the value of the type attribute of an unordered listLet us ... Read More

HTML DOM Underline Object

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:23:35

132 Views

The HTML DOM Underline Object in HTML represents the element.Creating a elementvar uObject = document.createElement(“U”)Let us see an example of Underline element −Example Live Demo HTML DOM Underline    form {       width:70%;       margin: 0 auto;       text-align: center; ... Read More

HTML DOM UiEvent Object

AmitDiwan

AmitDiwan

Updated on 30-Oct-2019 06:18:42

23 Views

The HTML DOM UiEvent Object represents an event which incurs on user’s interaction with HTML elements.Here, “UiEvent” can have the following properties and methods −Property/MethodDescriptiondetailItreturns a number with details about the eventviewItreturns a reference to the Window object where the event occurredLet us see an example of Event detail property ... Read More

Advertisements