Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; ////// [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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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; using System.Security.Permissions; ////// [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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Implements HotSpot for rectangle regions. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartDisplayModeEventArgs.cs
- InputBuffer.cs
- KeyValueConfigurationElement.cs
- AsmxEndpointPickerExtension.cs
- PTUtility.cs
- DecimalAnimationUsingKeyFrames.cs
- AttributeExtensions.cs
- DataBinder.cs
- EnumType.cs
- ExpandCollapsePattern.cs
- WebException.cs
- SocketPermission.cs
- ToolboxCategoryItems.cs
- EdmRelationshipRoleAttribute.cs
- BasicCellRelation.cs
- HMACSHA1.cs
- Latin1Encoding.cs
- RoutedEventArgs.cs
- WindowsRegion.cs
- HtmlLiteralTextAdapter.cs
- EncoderExceptionFallback.cs
- Iis7Helper.cs
- RoutedCommand.cs
- EventsTab.cs
- XmlAnyElementAttribute.cs
- ReaderContextStackData.cs
- SimpleFieldTemplateUserControl.cs
- CellCreator.cs
- ViewEventArgs.cs
- ServiceNotStartedException.cs
- DESCryptoServiceProvider.cs
- IIS7UserPrincipal.cs
- XPathMessageFilterElement.cs
- tooltip.cs
- PropertyManager.cs
- WebEventTraceProvider.cs
- ChangeConflicts.cs
- DesignerLoader.cs
- TreeViewAutomationPeer.cs
- TransactionScope.cs
- NonPrimarySelectionGlyph.cs
- DataTableMappingCollection.cs
- XmlFormatWriterGenerator.cs
- ExternalException.cs
- PositiveTimeSpanValidatorAttribute.cs
- ScrollViewer.cs
- Storyboard.cs
- ChameleonKey.cs
- SymDocumentType.cs
- XmlSchemaGroup.cs
- CounterSet.cs
- WmfPlaceableFileHeader.cs
- Pipe.cs
- SelectionProviderWrapper.cs
- NameSpaceExtractor.cs
- WebControlsSection.cs
- FontFamilyIdentifier.cs
- ImageMetadata.cs
- ObjectQueryProvider.cs
- SerialStream.cs
- UIPermission.cs
- Facet.cs
- EditorPartDesigner.cs
- SizeAnimationClockResource.cs
- DtdParser.cs
- XmlReaderSettings.cs
- RunWorkerCompletedEventArgs.cs
- SizeChangedInfo.cs
- ControlEvent.cs
- Literal.cs
- Point.cs
- DocumentPageView.cs
- ControlParameter.cs
- SetMemberBinder.cs
- DirectoryNotFoundException.cs
- DataGridViewTextBoxColumn.cs
- WebErrorHandler.cs
- CollectionChangedEventManager.cs
- AppLevelCompilationSectionCache.cs
- ResourcePermissionBaseEntry.cs
- TdsParser.cs
- SafeRightsManagementEnvironmentHandle.cs
- CodeConditionStatement.cs
- Emitter.cs
- ListViewInsertEventArgs.cs
- CssTextWriter.cs
- LineSegment.cs
- DataTransferEventArgs.cs
- ListBindingConverter.cs
- ArrayTypeMismatchException.cs
- xmlfixedPageInfo.cs
- IgnoreFileBuildProvider.cs
- SecurityException.cs
- AddInIpcChannel.cs
- TransformedBitmap.cs
- DocumentApplicationJournalEntry.cs
- RuntimeWrappedException.cs
- AnimationTimeline.cs
- TimeSpanMinutesConverter.cs
- XmlValidatingReader.cs