Server.ObjectPropertyList.Add C# (CSharp) Method

Add() public method

public Add ( string format, string arg0, string arg1 ) : void
format string
arg0 string
arg1 string
return void
		public void Add( string format, string arg0, string arg1 )
		{
			Add( GetStringNumber(), String.Format( format, arg0, arg1 ) );
		}

Same methods

ObjectPropertyList::Add ( int number ) : void
ObjectPropertyList::Add ( int number, string arguments ) : void
ObjectPropertyList::Add ( int number, string format, object arg0 ) : void
ObjectPropertyList::Add ( int number, string format, object arg0, object arg1 ) : void
ObjectPropertyList::Add ( int number, string format, object arg0, object arg1, object arg2 ) : void
ObjectPropertyList::Add ( string text ) : void
ObjectPropertyList::Add ( string format, string arg0 ) : void
ObjectPropertyList::Add ( string format, string arg0, string arg1, string arg2 ) : void

Usage Example

Example #1
0
		public override void GetProperties(ObjectPropertyList list)
		{
			base.GetProperties(list);

			int color = Color.FromKnownColor(UsageColor).ToArgb();

			switch (Command)
			{
				case AutoPvPStoneCommand.ViewBattles:
					{
						list.Add("<basefont color=#{0:X6}>Opens the PvP battles menu<basefont color=#ffffff>", color);
					}
					break;
				case AutoPvPStoneCommand.ViewProfiles:
					{
						list.Add("<basefont color=#{0:X6}>Opens the PvP profiles menu<basefont color=#ffffff>", color);
					}
					break;
				case AutoPvPStoneCommand.GlobalConfig:
					{
						list.Add("<basefont color=#{0:X6}>Use: Opens the PvP control panel<basefont color=#ffffff>", color);
					}
					break;
			}
		}
All Usage Examples Of Server.ObjectPropertyList::Add