GetBlipName: Difference between revisions
(Created page with "Gets the name of a blip. ==Syntax== <pre>string NAPI.Blip.GetBlipName(Blip blip);</pre> === Required Arguments === *'''blip:''' The blip to get the name from. Parameter inpu...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Gets the name of a blip. | Gets the name of a blip. | ||
= | {{CSharpContainer| | ||
*'''blip:''' The blip to get the | {{#tag:syntaxhighlight| string {{Template:CSharp_Serverside_namespace}}Blip.GetBlipName(Blip blip);|lang=csharp}} | ||
{{Parameters}} | |||
*'''blip:''' The blip to get the color from. Parameter input should be in '''Blip''' type | |||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight|var list = {{Template:CSharp_Serverside_namespace}}Pools.GetAllBlips(); | |||
var list = | |||
foreach (Blip blip in list) | foreach (Blip blip in list) | ||
{ | { | ||
if (string.IsNullOrEmpty( | if (string.IsNullOrEmpty({{Template:CSharp_Serverside_namespace}}Blip.GetBlipName(blip))) | ||
{ | { | ||
{{Template:CSharp_Serverside_namespace}}Blip.SetBlipName(blip, "My blip"); | |||
} | } | ||
} | } | ||
}} | |||
}} | }} | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
Latest revision as of 08:02, 29 November 2019
Gets the name of a blip.
C# Syntax
string NAPI.Blip.GetBlipName(Blip blip);
Parameters
- blip: The blip to get the color from. Parameter input should be in Blip type
Example
var list = NAPI.Pools.GetAllBlips();
foreach (Blip blip in list)
{
if (string.IsNullOrEmpty(NAPI.Blip.GetBlipName(blip)))
{
NAPI.Blip.SetBlipName(blip, "My blip");
}
}