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
- TableCellCollection.cs
- SafeRightsManagementPubHandle.cs
- BoundField.cs
- ISFClipboardData.cs
- LambdaCompiler.Address.cs
- GeometryCombineModeValidation.cs
- CopyAttributesAction.cs
- GeneratedContractType.cs
- InstalledFontCollection.cs
- AppLevelCompilationSectionCache.cs
- EncoderBestFitFallback.cs
- BackgroundWorker.cs
- RuleSetDialog.Designer.cs
- GenerateScriptTypeAttribute.cs
- DocumentGridContextMenu.cs
- InputLangChangeEvent.cs
- InstanceDescriptor.cs
- CheckedListBox.cs
- OdbcCommandBuilder.cs
- DownloadProgressEventArgs.cs
- StagingAreaInputItem.cs
- DragStartedEventArgs.cs
- MatrixIndependentAnimationStorage.cs
- ClientRoleProvider.cs
- ExpressionConverter.cs
- XmlSchemaSimpleTypeUnion.cs
- BinaryHeap.cs
- DescendantQuery.cs
- XPathAncestorQuery.cs
- PassportAuthentication.cs
- SpStreamWrapper.cs
- DesignerGenericWebPart.cs
- _UncName.cs
- XmlSchemaFacet.cs
- AbandonedMutexException.cs
- SpanIndex.cs
- Types.cs
- StyleBamlTreeBuilder.cs
- SystemInfo.cs
- SignedPkcs7.cs
- ShellProvider.cs
- SamlDelegatingWriter.cs
- XmlSequenceWriter.cs
- xmlsaver.cs
- RegistryExceptionHelper.cs
- Storyboard.cs
- ToolStripSplitButton.cs
- SizeConverter.cs
- DesignTimeTemplateParser.cs
- MediaTimeline.cs
- HTMLTextWriter.cs
- BindingEntityInfo.cs
- NumberSubstitution.cs
- MexServiceChannelBuilder.cs
- SymbolType.cs
- IntegrationExceptionEventArgs.cs
- CustomActivityDesigner.cs
- TranslateTransform3D.cs
- WS2007FederationHttpBindingCollectionElement.cs
- DummyDataSource.cs
- AnimationClockResource.cs
- DrawingServices.cs
- WebPartZoneCollection.cs
- PropertyChangingEventArgs.cs
- ListViewContainer.cs
- Lasso.cs
- CommonRemoteMemoryBlock.cs
- XPathSelectionIterator.cs
- TreeWalkHelper.cs
- DataBindEngine.cs
- HtmlTableCellCollection.cs
- MultiByteCodec.cs
- TextRangeBase.cs
- AuthenticationService.cs
- FormViewRow.cs
- TypefaceMap.cs
- DataColumnMapping.cs
- SecurityDescriptor.cs
- SqlDataSourceSelectingEventArgs.cs
- ChangePasswordDesigner.cs
- Control.cs
- BaseResourcesBuildProvider.cs
- FixedTextView.cs
- PropertyDescriptor.cs
- HyperLinkField.cs
- TypeConverterHelper.cs
- Module.cs
- ThrowHelper.cs
- CardSpacePolicyElement.cs
- ClientFormsAuthenticationCredentials.cs
- BuilderPropertyEntry.cs
- DataGridTextColumn.cs
- BitmapEffectDrawingContextState.cs
- SoapFaultCodes.cs
- DataGridViewCellConverter.cs
- xmlNames.cs
- DebuggerAttributes.cs
- LinearKeyFrames.cs
- UpdatePanelTriggerCollection.cs
- AspProxy.cs