MosswartMassacre/Unused/Decal.Adapter.Wrappers/ChoiceTextIndexer.cs
2025-06-09 02:03:11 +02:00

31 lines
449 B
C#

using System;
using Decal.Interop.Controls;
namespace Decal.Adapter.Wrappers;
public sealed class ChoiceTextIndexer : IDisposable
{
private Choice myControl;
public string this[int index]
{
get
{
return ((IChoice)myControl).get_Text(index);
}
set
{
((IChoice)myControl).set_Text(index, value);
}
}
internal ChoiceTextIndexer(Choice control)
{
myControl = control;
}
public void Dispose()
{
myControl = null;
}
}