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
- FragmentQueryKB.cs
- DataRelationCollection.cs
- SafeFileMapViewHandle.cs
- EmissiveMaterial.cs
- EditBehavior.cs
- TimeoutException.cs
- XmlSchemaComplexContentExtension.cs
- GetPageNumberCompletedEventArgs.cs
- ReliableMessagingHelpers.cs
- StateWorkerRequest.cs
- RegexNode.cs
- PerfProviderCollection.cs
- X509Utils.cs
- SymDocumentType.cs
- DataGridViewCellStyle.cs
- TimelineGroup.cs
- PanelDesigner.cs
- XmlnsPrefixAttribute.cs
- ClassHandlersStore.cs
- HttpPostedFile.cs
- Configuration.cs
- DtdParser.cs
- IMembershipProvider.cs
- ObjectPersistData.cs
- ConfigDefinitionUpdates.cs
- RootContext.cs
- UserUseLicenseDictionaryLoader.cs
- ConfigXmlSignificantWhitespace.cs
- HttpTransportSecurityElement.cs
- ObservableCollection.cs
- UpdateManifestForBrowserApplication.cs
- basecomparevalidator.cs
- SettingsBindableAttribute.cs
- KeyValuePairs.cs
- ObjectIDGenerator.cs
- CollectionsUtil.cs
- TextCharacters.cs
- WindowsFormsHostAutomationPeer.cs
- TreeChangeInfo.cs
- SimpleLine.cs
- WithParamAction.cs
- UrlPath.cs
- WindowInteropHelper.cs
- SizeFConverter.cs
- SelectingProviderEventArgs.cs
- WinInet.cs
- ReflectTypeDescriptionProvider.cs
- DataGridToolTip.cs
- ToolStripButton.cs
- VirtualDirectoryMapping.cs
- InlinedAggregationOperator.cs
- TargetInvocationException.cs
- InheritanceContextHelper.cs
- COM2IProvidePropertyBuilderHandler.cs
- SystemFonts.cs
- AccessControlList.cs
- DataGridViewRowCancelEventArgs.cs
- ToolStripItemDesigner.cs
- SQLChars.cs
- ParentQuery.cs
- EntityCommandCompilationException.cs
- ColumnClickEvent.cs
- ProfileEventArgs.cs
- ISCIIEncoding.cs
- CodeDomExtensionMethods.cs
- ToolStripStatusLabel.cs
- RepeatButtonAutomationPeer.cs
- AppDomainFactory.cs
- DetailsViewPageEventArgs.cs
- MessageDescription.cs
- HorizontalAlignConverter.cs
- IPHostEntry.cs
- BaseResourcesBuildProvider.cs
- TextEffectResolver.cs
- SourceFileInfo.cs
- BaseCodeDomTreeGenerator.cs
- TreeNodeCollection.cs
- SHA384Managed.cs
- ObjectSpanRewriter.cs
- DataSourceHelper.cs
- RangeValueProviderWrapper.cs
- FormatVersion.cs
- Int64AnimationUsingKeyFrames.cs
- EntityWrapperFactory.cs
- IteratorFilter.cs
- XmlSchemaGroupRef.cs
- ColorTransformHelper.cs
- ConfigurationLocationCollection.cs
- FixedTextSelectionProcessor.cs
- ToolboxComponentsCreatedEventArgs.cs
- MarshalByValueComponent.cs
- Lazy.cs
- RelatedPropertyManager.cs
- SiteIdentityPermission.cs
- ReferenceService.cs
- Lookup.cs
- XamlToRtfParser.cs
- NativeMethods.cs
- RNGCryptoServiceProvider.cs
- SortFieldComparer.cs