Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimeStampChecker.cs
- HttpClientCertificate.cs
- WSSecurityJan2004.cs
- CodeGroup.cs
- SQLMembershipProvider.cs
- LinqDataSourceValidationException.cs
- Soap11ServerProtocol.cs
- HttpHandlersSection.cs
- ArgIterator.cs
- QueryContinueDragEvent.cs
- XmlBaseWriter.cs
- RpcResponse.cs
- XMLSyntaxException.cs
- SocketException.cs
- MediaTimeline.cs
- PersonalizationStateInfoCollection.cs
- ProfilePropertyNameValidator.cs
- ComponentEditorPage.cs
- SqlBinder.cs
- HttpSysSettings.cs
- ObfuscationAttribute.cs
- Utils.cs
- CurrencyManager.cs
- XamlParser.cs
- ClientUrlResolverWrapper.cs
- ClipboardProcessor.cs
- Stream.cs
- AnonymousIdentificationModule.cs
- GenerateScriptTypeAttribute.cs
- ComplexLine.cs
- sortedlist.cs
- MouseOverProperty.cs
- DataServiceQuery.cs
- DataGridTextColumn.cs
- SqlCacheDependencyDatabase.cs
- StylusEventArgs.cs
- XPathNavigatorReader.cs
- TextStore.cs
- ScrollBarAutomationPeer.cs
- AuthenticationConfig.cs
- CodeIdentifiers.cs
- MetadataCache.cs
- MimeAnyImporter.cs
- UnsafeNativeMethods.cs
- FolderLevelBuildProviderCollection.cs
- CultureSpecificCharacterBufferRange.cs
- ConfigXmlComment.cs
- PropertyInformation.cs
- BindingMemberInfo.cs
- ILGenerator.cs
- ConstantProjectedSlot.cs
- RowToFieldTransformer.cs
- ItemAutomationPeer.cs
- CollectionBase.cs
- DirtyTextRange.cs
- Transform.cs
- DrawingState.cs
- GuidelineCollection.cs
- DataTemplate.cs
- InlineObject.cs
- OdbcParameter.cs
- ValuePattern.cs
- StreamingContext.cs
- TakeOrSkipWhileQueryOperator.cs
- WebConfigurationFileMap.cs
- HttpRawResponse.cs
- PrintPreviewDialog.cs
- ComponentChangedEvent.cs
- DeclaredTypeValidatorAttribute.cs
- HttpHandlerAction.cs
- XPathParser.cs
- XamlWriter.cs
- IDispatchConstantAttribute.cs
- HostUtils.cs
- WebPartDisplayMode.cs
- TextDecorationCollection.cs
- PartBasedPackageProperties.cs
- _IPv4Address.cs
- ForeignKeyConstraint.cs
- Point3DValueSerializer.cs
- ConfigXmlWhitespace.cs
- CopyAttributesAction.cs
- PolicyConversionContext.cs
- XmlCharacterData.cs
- ApplicationTrust.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- DataListItem.cs
- Int32CAMarshaler.cs
- X509WindowsSecurityToken.cs
- ProfileService.cs
- RestHandler.cs
- TextElement.cs
- XmlSchemaSimpleTypeUnion.cs
- Aggregates.cs
- DataGridRowDetailsEventArgs.cs
- CategoryAttribute.cs
- LineGeometry.cs
- DocumentSchemaValidator.cs
- JoinGraph.cs
- BatchServiceHost.cs