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
- XmlSchemaSimpleContentExtension.cs
- CommandID.cs
- DataBindingList.cs
- ReliabilityContractAttribute.cs
- EventLogger.cs
- HttpModuleCollection.cs
- MissingMethodException.cs
- GridViewCommandEventArgs.cs
- COM2EnumConverter.cs
- DataKeyArray.cs
- HtmlLink.cs
- TableLayoutPanelResizeGlyph.cs
- TrackBar.cs
- ActivityValidator.cs
- Stylus.cs
- ScrollProperties.cs
- XamlRtfConverter.cs
- TreePrinter.cs
- AnnotationAdorner.cs
- NumberFunctions.cs
- NetworkInterface.cs
- DesignBindingPropertyDescriptor.cs
- ValueOfAction.cs
- IriParsingElement.cs
- DecimalConstantAttribute.cs
- BoolExpression.cs
- NativeMethodsOther.cs
- PeerPresenceInfo.cs
- DataGridViewImageColumn.cs
- UnauthorizedWebPart.cs
- LocalTransaction.cs
- HttpListenerPrefixCollection.cs
- PtsHelper.cs
- GroupBoxDesigner.cs
- TrackBarDesigner.cs
- ReverseInheritProperty.cs
- SetStateDesigner.cs
- FlowNode.cs
- XmlILAnnotation.cs
- Operator.cs
- XmlSchemaExternal.cs
- MemberDescriptor.cs
- ThreadAbortException.cs
- WebBrowsableAttribute.cs
- input.cs
- oledbmetadatacollectionnames.cs
- SocketException.cs
- StateItem.cs
- DataList.cs
- ValueChangedEventManager.cs
- DispatcherTimer.cs
- PropertyDescriptorGridEntry.cs
- ManagedIStream.cs
- IdleTimeoutMonitor.cs
- SqlBuffer.cs
- FontFamily.cs
- StructuredType.cs
- CompiledIdentityConstraint.cs
- SingleBodyParameterMessageFormatter.cs
- PaintValueEventArgs.cs
- BinaryOperationBinder.cs
- LinkGrep.cs
- WindowsRichEditRange.cs
- TextChangedEventArgs.cs
- TypeSystem.cs
- EncryptedHeaderXml.cs
- TableItemStyle.cs
- WsrmFault.cs
- ValidateNames.cs
- AutomationEvent.cs
- CompilerResults.cs
- PrintPreviewControl.cs
- XamlPoint3DCollectionSerializer.cs
- ItemContainerPattern.cs
- DataGridColumnStyleMappingNameEditor.cs
- HttpChannelListener.cs
- StickyNoteAnnotations.cs
- DesignerCatalogPartChrome.cs
- sqlnorm.cs
- Menu.cs
- ServerValidateEventArgs.cs
- EventToken.cs
- Inline.cs
- VSDExceptions.cs
- SqlLiftWhereClauses.cs
- HtmlLiteralTextAdapter.cs
- ContextMenu.cs
- SystemResources.cs
- HostedTransportConfigurationBase.cs
- Int64AnimationUsingKeyFrames.cs
- DetailsViewUpdatedEventArgs.cs
- DocumentPageHost.cs
- DataTemplateKey.cs
- DataBindingExpressionBuilder.cs
- DataGridViewCell.cs
- XamlDesignerSerializationManager.cs
- CompilerTypeWithParams.cs
- RelationalExpressions.cs
- ItemsPanelTemplate.cs
- CacheModeValueSerializer.cs