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
- Scripts.cs
- DragEvent.cs
- HighlightVisual.cs
- ReflectEventDescriptor.cs
- StylusPointProperties.cs
- HtmlFormParameterWriter.cs
- OutOfMemoryException.cs
- TabItemWrapperAutomationPeer.cs
- DrawingVisual.cs
- StringDictionary.cs
- SingleSelectRootGridEntry.cs
- ImportCatalogPart.cs
- RemoteCryptoSignHashRequest.cs
- UpdatePanelControlTrigger.cs
- SerializationSectionGroup.cs
- RequestBringIntoViewEventArgs.cs
- TextServicesLoader.cs
- ApplicationServicesHostFactory.cs
- CellIdBoolean.cs
- Icon.cs
- DataRowComparer.cs
- ValidationResult.cs
- ProxyWebPartManager.cs
- TableCell.cs
- HttpWebRequestElement.cs
- EntityStoreSchemaFilterEntry.cs
- SimpleApplicationHost.cs
- MultiByteCodec.cs
- DrawingImage.cs
- TextFragmentEngine.cs
- CryptoApi.cs
- ConfigurationSection.cs
- KnownTypesHelper.cs
- KoreanLunisolarCalendar.cs
- HtmlEncodedRawTextWriter.cs
- ButtonAutomationPeer.cs
- PageSetupDialog.cs
- XmlCustomFormatter.cs
- TrackBar.cs
- SystemUdpStatistics.cs
- MaterialGroup.cs
- DetailsViewPagerRow.cs
- PrimitiveDataContract.cs
- HtmlInputControl.cs
- BinaryObjectReader.cs
- PointLightBase.cs
- DataRowComparer.cs
- DependentList.cs
- Lazy.cs
- FileAuthorizationModule.cs
- TogglePatternIdentifiers.cs
- ObservableCollection.cs
- RpcCryptoContext.cs
- precedingsibling.cs
- WebPartEditorCancelVerb.cs
- QuotedPrintableStream.cs
- SHA1CryptoServiceProvider.cs
- FakeModelPropertyImpl.cs
- TransformGroup.cs
- CodeDOMProvider.cs
- WmlListAdapter.cs
- WebResourceAttribute.cs
- OverflowException.cs
- TcpActivation.cs
- TypeValidationEventArgs.cs
- XmlComment.cs
- BoolExpr.cs
- ImageAttributes.cs
- OleDbConnection.cs
- XamlStream.cs
- Globals.cs
- CodeTryCatchFinallyStatement.cs
- ContextStaticAttribute.cs
- OdbcStatementHandle.cs
- LogEntryDeserializer.cs
- ListItemConverter.cs
- EntityDataReader.cs
- DataServiceRequestException.cs
- Translator.cs
- BooleanAnimationBase.cs
- Viewport2DVisual3D.cs
- NumericUpDownAcceleration.cs
- DrawingCollection.cs
- PageContentCollection.cs
- SynchronizationLockException.cs
- BitHelper.cs
- ImageCodecInfoPrivate.cs
- complextypematerializer.cs
- ElementHostAutomationPeer.cs
- EndpointDesigner.cs
- DetailsViewInsertEventArgs.cs
- AssemblyAttributesGoHere.cs
- CookieParameter.cs
- LocalBuilder.cs
- EntityException.cs
- PkcsMisc.cs
- _SSPISessionCache.cs
- CommunicationObject.cs
- AutomationPropertyInfo.cs
- ADMembershipUser.cs