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
- MouseGesture.cs
- IgnoreSectionHandler.cs
- ThicknessAnimation.cs
- ObjectHandle.cs
- DataRecordObjectView.cs
- BitmapFrame.cs
- XPathCompiler.cs
- PriorityItem.cs
- ColorConvertedBitmapExtension.cs
- SecurityPolicySection.cs
- WebHttpSecurityElement.cs
- TimeStampChecker.cs
- PatternMatcher.cs
- WorkflowTransactionService.cs
- TextTreeInsertElementUndoUnit.cs
- SoapObjectWriter.cs
- HwndMouseInputProvider.cs
- FixedSOMContainer.cs
- NotifyParentPropertyAttribute.cs
- SrgsRuleRef.cs
- ProcessHostMapPath.cs
- OleDbStruct.cs
- NativeObjectSecurity.cs
- WriteableBitmap.cs
- MissingManifestResourceException.cs
- DateTimeConverter2.cs
- CultureSpecificStringDictionary.cs
- TrackingWorkflowEventArgs.cs
- Expander.cs
- PackUriHelper.cs
- HtmlElementErrorEventArgs.cs
- TypeToStringValueConverter.cs
- SystemTcpConnection.cs
- ComUdtElement.cs
- ResourceDescriptionAttribute.cs
- DataGridViewColumnHeaderCell.cs
- DataObjectAttribute.cs
- OracleRowUpdatedEventArgs.cs
- JumpItem.cs
- WebEvents.cs
- DataGridViewBand.cs
- DocumentSchemaValidator.cs
- ElementsClipboardData.cs
- TypeReference.cs
- ProviderConnectionPoint.cs
- Label.cs
- SortDescription.cs
- AffineTransform3D.cs
- StringCollectionEditor.cs
- SQLByteStorage.cs
- SBCSCodePageEncoding.cs
- SearchForVirtualItemEventArgs.cs
- JsonCollectionDataContract.cs
- XmlSortKeyAccumulator.cs
- HtmlLink.cs
- EventKeyword.cs
- DecimalConverter.cs
- TranslateTransform.cs
- Part.cs
- TagPrefixCollection.cs
- RecipientInfo.cs
- HtmlWindow.cs
- AnonymousIdentificationModule.cs
- ListControlConvertEventArgs.cs
- Window.cs
- ExpressionBindingsDialog.cs
- OneWayElement.cs
- CodeTypeDeclarationCollection.cs
- MouseOverProperty.cs
- Viewport3DAutomationPeer.cs
- MailMessageEventArgs.cs
- ExtendLockCommand.cs
- TextEffect.cs
- AsymmetricAlgorithm.cs
- RepeatBehavior.cs
- PreviewKeyDownEventArgs.cs
- HyperLinkDataBindingHandler.cs
- ObjectViewFactory.cs
- DelegateInArgument.cs
- DatePickerTextBox.cs
- securestring.cs
- FormViewUpdateEventArgs.cs
- SignatureGenerator.cs
- RightNameExpirationInfoPair.cs
- EncoderParameters.cs
- SemanticAnalyzer.cs
- DataControlPagerLinkButton.cs
- ChtmlMobileTextWriter.cs
- HtmlInputControl.cs
- URLAttribute.cs
- COM2PictureConverter.cs
- DesignerObject.cs
- QilXmlReader.cs
- ClientRoleProvider.cs
- LambdaCompiler.Unary.cs
- PersonalizationEntry.cs
- ProfilePropertySettingsCollection.cs
- FieldToken.cs
- EventlogProvider.cs
- TabPanel.cs