Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / RectangleHotSpot.cs / 1 / RectangleHotSpot.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Globalization;
using System.Web.UI;
using System.Security.Permissions;
///
/// Implements HotSpot for rectangle regions.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class RectangleHotSpot : HotSpot {
[
WebCategory("Appearance"),
DefaultValue(0),
WebSysDescription(SR.RectangleHotSpot_Bottom),
]
public int Bottom {
get {
object o = ViewState["Bottom"];
return o != null? (int)o : 0;
}
set {
ViewState["Bottom"] = value;
}
}
[
WebCategory("Appearance"),
DefaultValue(0),
WebSysDescription(SR.RectangleHotSpot_Left),
]
public int Left {
get {
object o = ViewState["Left"];
return o != null? (int)o : 0;
}
set {
ViewState["Left"] = value;
}
}
[
WebCategory("Appearance"),
DefaultValue(0),
WebSysDescription(SR.RectangleHotSpot_Right),
]
public int Right {
get {
object o = ViewState["Right"];
return o != null? (int)o : 0;
}
set {
ViewState["Right"] = value;
}
}
[
WebCategory("Appearance"),
DefaultValue(0),
WebSysDescription(SR.RectangleHotSpot_Top),
]
public int Top {
get {
object o = ViewState["Top"];
return o != null? (int)o : 0;
}
set {
ViewState["Top"] = value;
}
}
protected internal override string MarkupName {
get {
return "rect";
}
}
public override string GetCoordinates() {
return Left + "," + Top + "," + Right + "," + Bottom;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmiGettersStream.cs
- PKCS1MaskGenerationMethod.cs
- ToolboxItemCollection.cs
- CodeSnippetCompileUnit.cs
- TraceSection.cs
- FormDesigner.cs
- HttpContext.cs
- ReturnType.cs
- XmlWrappingWriter.cs
- SettingsAttributeDictionary.cs
- TextServicesContext.cs
- Propagator.ExtentPlaceholderCreator.cs
- _FixedSizeReader.cs
- PrimaryKeyTypeConverter.cs
- RC2.cs
- _NegoStream.cs
- TagMapInfo.cs
- Zone.cs
- CompilerErrorCollection.cs
- _HTTPDateParse.cs
- HandleExceptionArgs.cs
- MenuAutoFormat.cs
- LambdaCompiler.Address.cs
- PenLineJoinValidation.cs
- SourceChangedEventArgs.cs
- ResourceWriter.cs
- UseLicense.cs
- WebBrowserBase.cs
- NamedPipeHostedTransportConfiguration.cs
- ScriptBehaviorDescriptor.cs
- ShowExpandedMultiValueConverter.cs
- X509KeyIdentifierClauseType.cs
- TaskFormBase.cs
- ControlAdapter.cs
- PreProcessInputEventArgs.cs
- XmlDataSourceView.cs
- Keywords.cs
- SortQuery.cs
- AudioSignalProblemOccurredEventArgs.cs
- FormParameter.cs
- BCryptNative.cs
- ReadOnlyDictionary.cs
- SourceSwitch.cs
- LineProperties.cs
- ServiceHostFactory.cs
- NamespaceList.cs
- InitializingNewItemEventArgs.cs
- PtsHost.cs
- DesignerLoader.cs
- EntityClassGenerator.cs
- Point3D.cs
- ModelPerspective.cs
- MessageQueuePermissionEntry.cs
- WebPartHeaderCloseVerb.cs
- Add.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ContextStack.cs
- IChannel.cs
- Matrix.cs
- TypeUtil.cs
- IsolationInterop.cs
- CustomAttributeFormatException.cs
- TdsParserStaticMethods.cs
- ValidationException.cs
- TextPattern.cs
- WebPartVerb.cs
- FixedSchema.cs
- ButtonRenderer.cs
- GenericTypeParameterBuilder.cs
- TransformedBitmap.cs
- NumberFunctions.cs
- CompositeFontFamily.cs
- HtmlInputPassword.cs
- HttpHeaderCollection.cs
- Command.cs
- ProfilePropertySettings.cs
- DeadCharTextComposition.cs
- PolyBezierSegmentFigureLogic.cs
- ChangePassword.cs
- WebControlAdapter.cs
- BmpBitmapEncoder.cs
- ForeignKeyFactory.cs
- XmlAnyAttributeAttribute.cs
- ExceptionUtil.cs
- XmlComplianceUtil.cs
- DebugView.cs
- XmlElementAttribute.cs
- LoginNameDesigner.cs
- IntSumAggregationOperator.cs
- JsonReaderWriterFactory.cs
- RegistryKey.cs
- WizardStepCollectionEditor.cs
- ProbeMatchesCD1.cs
- PlatformCulture.cs
- TraceSection.cs
- FullTrustAssembliesSection.cs
- XmlCustomFormatter.cs
- InvokeMethodActivityDesigner.cs
- HttpRuntimeSection.cs
- DoubleAnimationUsingKeyFrames.cs