|
#region Disclaimer by Teo Lachev "Microsoft Reporting Services in Action"
/*============================================================================
File: FormatListboxTypeEditor.cs
Summary: This class is an implementation of the ListboxTypeEditor abstract class
for the zoom listbox.
--------------------------------------------------------------------
The AwReportViewer sample was built upon on the Microsoft's ReportViewer control included
with the RS samples.
The following portions of the code have been changed/added to fit the book needs:
1. Nothing was changed
===========================================================================*/
#endregion
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms.ComponentModel;
using System.Windows.Forms.Design;
using System.Collections;
namespace RSControl.WebViewer
{
public class ZoomListboxTypeEditor : ListboxTypeEditor
{
/// <summary>
/// Fill a ListBox with zoom values.
/// </summary>
/// <param name="pContext"></param>
/// <param name="pProvider"></param>
/// <param name="pListBox"></param>
protected override void FillInList(ITypeDescriptorContext pContext, IServiceProvider pProvider, ListBox pListBox)
{
pListBox.Items.Add("10%");
pListBox.Items.Add("25%");
pListBox.Items.Add("50%");
pListBox.Items.Add("75%");
pListBox.Items.Add("100%");
pListBox.Items.Add("150%");
pListBox.Items.Add("200%");
pListBox.Items.Add("500%");
pListBox.BorderStyle = BorderStyle.None;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Years of software consulting and software development using Microsoft development products such as Microsoft Content Management System, SQL Server Reporting Service, ASP.Net C# VB.Net, HTML and javascript web development, Visual Studio add-on development, C++ MFC/ATL and COM+ development, and ActiveX components.