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
- KeyTime.cs
- TemplateBindingExtension.cs
- CrossAppDomainChannel.cs
- AccessDataSource.cs
- TraceFilter.cs
- Column.cs
- ClientRuntime.cs
- DetailsViewCommandEventArgs.cs
- smtpconnection.cs
- AnnouncementEventArgs.cs
- FileRegion.cs
- _NTAuthentication.cs
- ExtendedProperty.cs
- HandlerBase.cs
- SHA1Managed.cs
- _AcceptOverlappedAsyncResult.cs
- ConnectionPoolManager.cs
- DropShadowBitmapEffect.cs
- SafeThemeHandle.cs
- DrawListViewColumnHeaderEventArgs.cs
- EdmRelationshipRoleAttribute.cs
- ControlAdapter.cs
- RegexCaptureCollection.cs
- BrowserCapabilitiesFactory35.cs
- ConfigUtil.cs
- SynchronizationContext.cs
- Rect.cs
- AssociationTypeEmitter.cs
- StringWriter.cs
- Event.cs
- DataGridItemEventArgs.cs
- QueryableFilterRepeater.cs
- PagedControl.cs
- DbModificationCommandTree.cs
- RuleConditionDialog.cs
- SiteMap.cs
- KerberosReceiverSecurityToken.cs
- ControlBuilder.cs
- ComponentDispatcher.cs
- HtmlForm.cs
- ServerReliableChannelBinder.cs
- EntityCommandCompilationException.cs
- DBAsyncResult.cs
- WebPartDisplayMode.cs
- HierarchicalDataBoundControl.cs
- GraphicsState.cs
- SortDescription.cs
- PrimitiveXmlSerializers.cs
- OdbcInfoMessageEvent.cs
- DataGridViewCellStateChangedEventArgs.cs
- EventWaitHandleSecurity.cs
- SafeThemeHandle.cs
- RunWorkerCompletedEventArgs.cs
- PrincipalPermission.cs
- AuthenticationConfig.cs
- AudioBase.cs
- Constraint.cs
- CustomWebEventKey.cs
- ToolBar.cs
- ServiceBusyException.cs
- FixedTextContainer.cs
- PassportAuthenticationModule.cs
- GroupDescription.cs
- PropertyDescriptorCollection.cs
- ScalarType.cs
- DbDataAdapter.cs
- WindowsComboBox.cs
- BamlRecordWriter.cs
- LocatorBase.cs
- ProfileSettingsCollection.cs
- Authorization.cs
- MethodRental.cs
- TrackBar.cs
- Menu.cs
- PanelDesigner.cs
- PreviewPageInfo.cs
- MarkupWriter.cs
- ZipIOLocalFileHeader.cs
- DoubleAnimationUsingPath.cs
- DesignerListAdapter.cs
- ArgumentException.cs
- PolyQuadraticBezierSegment.cs
- figurelengthconverter.cs
- ScriptingProfileServiceSection.cs
- XmlnsDefinitionAttribute.cs
- Converter.cs
- ApplyImportsAction.cs
- EventSinkActivity.cs
- PageBuildProvider.cs
- RectangleGeometry.cs
- SubMenuStyle.cs
- ResourceManager.cs
- BitmapPalette.cs
- ProfileParameter.cs
- ColorConvertedBitmap.cs
- FunctionCommandText.cs
- QilGeneratorEnv.cs
- XamlStream.cs
- CodeTryCatchFinallyStatement.cs
- Stack.cs