Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / RectangleHotSpot.cs / 1305376 / 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; ////// 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Implements HotSpot for rectangle regions. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Globalization; using System.Web.UI; ////// 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Implements HotSpot for rectangle regions. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorHandler.cs
- Authorization.cs
- ImportContext.cs
- TaiwanLunisolarCalendar.cs
- NativeMethods.cs
- UdpUtility.cs
- ClientRuntimeConfig.cs
- PairComparer.cs
- Exceptions.cs
- WsatConfiguration.cs
- TreeNodeMouseHoverEvent.cs
- ProgressBarBrushConverter.cs
- TrustManager.cs
- LinearQuaternionKeyFrame.cs
- SystemIPInterfaceProperties.cs
- ObjectStateFormatter.cs
- FlowLayout.cs
- TraceSource.cs
- MergeFilterQuery.cs
- SafeCertificateStore.cs
- NotCondition.cs
- ProxyRpc.cs
- WindowVisualStateTracker.cs
- ToolStripProgressBar.cs
- CompilationRelaxations.cs
- MessageQueueCriteria.cs
- BasicCellRelation.cs
- DiscoveryOperationContextExtension.cs
- WebBrowserProgressChangedEventHandler.cs
- GroupBox.cs
- XamlToRtfWriter.cs
- ScrollChrome.cs
- DataErrorValidationRule.cs
- DBConcurrencyException.cs
- ItemType.cs
- AssertSection.cs
- WebScriptEnablingElement.cs
- EditBehavior.cs
- TableCellCollection.cs
- ExpressionList.cs
- TraceUtils.cs
- SafeReversePInvokeHandle.cs
- TraceSection.cs
- BuildDependencySet.cs
- LocalClientSecuritySettings.cs
- bindurihelper.cs
- CategoryAttribute.cs
- Trigger.cs
- SQLInt64Storage.cs
- FieldToken.cs
- Encoder.cs
- Unit.cs
- RowToParametersTransformer.cs
- PostBackOptions.cs
- ProcessHost.cs
- AttachedPropertyMethodSelector.cs
- ControlValuePropertyAttribute.cs
- IncrementalCompileAnalyzer.cs
- ReferencedAssembly.cs
- TimeSpanSecondsConverter.cs
- PageAsyncTaskManager.cs
- TraceLevelStore.cs
- AutomationElement.cs
- JoinCqlBlock.cs
- TypeExtension.cs
- Control.cs
- VersionPair.cs
- PermissionSet.cs
- DataSourceCollectionBase.cs
- ResXDataNode.cs
- FilterableAttribute.cs
- GlobalDataBindingHandler.cs
- ExtenderProvidedPropertyAttribute.cs
- FilteredDataSetHelper.cs
- SpeechSeg.cs
- AuthenticationModuleElement.cs
- AttributeProviderAttribute.cs
- DrawingGroupDrawingContext.cs
- FtpWebResponse.cs
- Attributes.cs
- DataSetViewSchema.cs
- GrammarBuilderBase.cs
- ItemType.cs
- GridViewRow.cs
- Mutex.cs
- CustomValidator.cs
- CompilerState.cs
- ViewStateModeByIdAttribute.cs
- _NegoStream.cs
- DataGridGeneralPage.cs
- TableRowCollection.cs
- UnmanagedBitmapWrapper.cs
- JournalNavigationScope.cs
- ToolStripContainerActionList.cs
- TypeBuilderInstantiation.cs
- IOException.cs
- BulletedListEventArgs.cs
- CommonProperties.cs
- ComponentEditorPage.cs
- StorageMappingFragment.cs