Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //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.Implements HotSpot for rectangle regions. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeneralTransform3DGroup.cs
- EventHandlerList.cs
- DmlSqlGenerator.cs
- SafeThreadHandle.cs
- HtmlString.cs
- PersonalizableAttribute.cs
- TextMetrics.cs
- InkSerializer.cs
- GenerateTemporaryAssemblyTask.cs
- XMLSyntaxException.cs
- TextSegment.cs
- ParserExtension.cs
- TraceHwndHost.cs
- ContentAlignmentEditor.cs
- XmlException.cs
- SystemException.cs
- ScriptResourceInfo.cs
- coordinatorfactory.cs
- TraceInternal.cs
- TextParaClient.cs
- CryptoStream.cs
- HttpListenerPrefixCollection.cs
- SSmlParser.cs
- ListManagerBindingsCollection.cs
- XmlEventCache.cs
- AutomationPatternInfo.cs
- DataRelationCollection.cs
- UIElementParaClient.cs
- OrCondition.cs
- ErrorProvider.cs
- ColorContext.cs
- ImageCodecInfo.cs
- SecurityTokenParameters.cs
- UndoManager.cs
- Int64KeyFrameCollection.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- EnlistmentTraceIdentifier.cs
- ObjectListDataBindEventArgs.cs
- CommandLineParser.cs
- ContextMenuAutomationPeer.cs
- InfoCardTrace.cs
- AspProxy.cs
- ProcessHostServerConfig.cs
- SecureStringHasher.cs
- X509SecurityToken.cs
- SynthesizerStateChangedEventArgs.cs
- TableCell.cs
- WebDisplayNameAttribute.cs
- DataControlFieldCell.cs
- ViewStateModeByIdAttribute.cs
- CompositeActivityTypeDescriptorProvider.cs
- ListViewContainer.cs
- HttpFileCollectionBase.cs
- Semaphore.cs
- AssemblyAttributesGoHere.cs
- DropSource.cs
- ISAPIWorkerRequest.cs
- WebProxyScriptElement.cs
- AutoScrollHelper.cs
- _UriSyntax.cs
- RegexCapture.cs
- TypefaceMap.cs
- DocumentGrid.cs
- LocatorManager.cs
- ResourceReferenceExpressionConverter.cs
- XmlQueryTypeFactory.cs
- IteratorDescriptor.cs
- ResolveNameEventArgs.cs
- EntityContainerRelationshipSet.cs
- X509Utils.cs
- WaitHandle.cs
- ToolStripContainer.cs
- HostingEnvironmentWrapper.cs
- DiagnosticTraceRecords.cs
- SynthesizerStateChangedEventArgs.cs
- SkipStoryboardToFill.cs
- ResourceExpressionEditorSheet.cs
- XpsFixedDocumentReaderWriter.cs
- FunctionNode.cs
- ProjectionPath.cs
- InfocardExtendedInformationCollection.cs
- DbConnectionHelper.cs
- XPathDocument.cs
- EncodingNLS.cs
- ListSortDescription.cs
- SqlBulkCopyColumnMapping.cs
- WebControl.cs
- TableLayoutRowStyleCollection.cs
- SocketAddress.cs
- Resources.Designer.cs
- Size.cs
- HttpCacheParams.cs
- ComponentEvent.cs
- ObjectDataSourceDisposingEventArgs.cs
- TrailingSpaceComparer.cs
- CodeNamespaceCollection.cs
- MsmqAuthenticationMode.cs
- BaseDataListComponentEditor.cs
- WebSysDisplayNameAttribute.cs
- GridItem.cs