Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / 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
- FlowThrottle.cs
- Table.cs
- ProxyWebPart.cs
- ConnectionModeReader.cs
- TypeForwardedToAttribute.cs
- ParagraphVisual.cs
- QueryExtender.cs
- PeerContact.cs
- JournalNavigationScope.cs
- GroupDescription.cs
- HttpValueCollection.cs
- ByteAnimationBase.cs
- LocatorManager.cs
- HostedImpersonationContext.cs
- SmuggledIUnknown.cs
- Parser.cs
- DesignerActionItem.cs
- ZipQueryOperator.cs
- DrawingGroup.cs
- RayHitTestParameters.cs
- SqlConnectionFactory.cs
- FileLogRecord.cs
- ListDictionary.cs
- HtmlLinkAdapter.cs
- SynchronizationContext.cs
- ImageCodecInfoPrivate.cs
- ConstrainedGroup.cs
- DecimalAverageAggregationOperator.cs
- Deserializer.cs
- VectorConverter.cs
- EntityDataSource.cs
- ExpressionBindingsDialog.cs
- ObjectSecurity.cs
- FileUtil.cs
- BaseTemplateParser.cs
- NullToBooleanConverter.cs
- ListItemConverter.cs
- SortedSet.cs
- DuplicateWaitObjectException.cs
- ISSmlParser.cs
- HttpValueCollection.cs
- StdValidatorsAndConverters.cs
- WebEncodingValidatorAttribute.cs
- MultiAsyncResult.cs
- InstanceHandleReference.cs
- ScriptReferenceEventArgs.cs
- WindowsBrush.cs
- HierarchicalDataBoundControl.cs
- TabPage.cs
- MemberMaps.cs
- LinearGradientBrush.cs
- FatalException.cs
- ScrollItemProviderWrapper.cs
- EncodingNLS.cs
- SqlDataReader.cs
- XPathNodeIterator.cs
- QuaternionKeyFrameCollection.cs
- PerformanceCounterManager.cs
- XPathScanner.cs
- MimeMapping.cs
- OleAutBinder.cs
- IsolatedStoragePermission.cs
- XmlSchemaValidationException.cs
- LocalClientSecuritySettingsElement.cs
- StreamGeometry.cs
- PointLight.cs
- SqlClientMetaDataCollectionNames.cs
- SqlClientFactory.cs
- ProjectionCamera.cs
- CalendarDateRange.cs
- CompensationTokenData.cs
- NonParentingControl.cs
- LessThanOrEqual.cs
- VarRefManager.cs
- ListItemCollection.cs
- HttpRequestCacheValidator.cs
- CardSpaceSelector.cs
- TrackingMemoryStream.cs
- EntityDataSourceWrapperCollection.cs
- XamlStream.cs
- CodeDOMUtility.cs
- CroppedBitmap.cs
- ExeConfigurationFileMap.cs
- ViewBox.cs
- ClientBuildManager.cs
- ISO2022Encoding.cs
- TypeValidationEventArgs.cs
- Peer.cs
- AutomationPropertyInfo.cs
- NamespaceEmitter.cs
- SchemaAttDef.cs
- BamlTreeNode.cs
- IgnoreFileBuildProvider.cs
- BitmapEffectCollection.cs
- EventSinkHelperWriter.cs
- CompositeDataBoundControl.cs
- WindowsListViewGroup.cs
- XmlILStorageConverter.cs
- UrlMappingsSection.cs
- FloatUtil.cs