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
- SimpleApplicationHost.cs
- NameTable.cs
- RayMeshGeometry3DHitTestResult.cs
- TextRangeBase.cs
- WindowsListBox.cs
- ThousandthOfEmRealDoubles.cs
- GeometryModel3D.cs
- DocumentOrderQuery.cs
- QueryStringParameter.cs
- TableLayoutSettingsTypeConverter.cs
- DataObjectCopyingEventArgs.cs
- EntityProviderFactory.cs
- NonParentingControl.cs
- RemotingConfiguration.cs
- EnterpriseServicesHelper.cs
- Vector.cs
- RunWorkerCompletedEventArgs.cs
- WindowsServiceCredential.cs
- BaseEntityWrapper.cs
- TransformationRules.cs
- DesignColumn.cs
- Parser.cs
- KoreanLunisolarCalendar.cs
- DataSourceCache.cs
- TableParagraph.cs
- DataSetViewSchema.cs
- MetadataSource.cs
- DependencyProperty.cs
- BrowserCapabilitiesFactoryBase.cs
- TypeElement.cs
- ChannelSinkStacks.cs
- SqlCaseSimplifier.cs
- AlternateView.cs
- ListMarkerSourceInfo.cs
- ConcurrencyMode.cs
- ChtmlPageAdapter.cs
- documentsequencetextpointer.cs
- ConnectionPointCookie.cs
- ToolStripRenderer.cs
- TreeNodeCollection.cs
- RootContext.cs
- XmlBaseReader.cs
- IndicShape.cs
- JapaneseCalendar.cs
- Mapping.cs
- ConfigViewGenerator.cs
- TypeLibConverter.cs
- LayoutEvent.cs
- DataGridViewCellCancelEventArgs.cs
- SqlCacheDependency.cs
- SessionEndingCancelEventArgs.cs
- OutputCacheProfile.cs
- BufferedGraphicsContext.cs
- TaskDesigner.cs
- EmptyControlCollection.cs
- DoubleAnimationClockResource.cs
- XsdDuration.cs
- DependencyProperty.cs
- WebServiceMethodData.cs
- ExpressionDumper.cs
- HighlightOverlayGlyph.cs
- ResourceDefaultValueAttribute.cs
- ListViewItemMouseHoverEvent.cs
- ProfilePropertyNameValidator.cs
- TextWriter.cs
- Latin1Encoding.cs
- CompatibleIComparer.cs
- VectorCollectionValueSerializer.cs
- DescendentsWalker.cs
- DrawingGroup.cs
- RowToParametersTransformer.cs
- GeneralTransform3DGroup.cs
- EventLogPermissionEntry.cs
- MachineSettingsSection.cs
- XmlILIndex.cs
- StandardCommands.cs
- ProjectionNode.cs
- DataContractJsonSerializer.cs
- SymDocumentType.cs
- TCEAdapterGenerator.cs
- GlyphCache.cs
- CommandManager.cs
- DiscoveryDocumentReference.cs
- RegisteredArrayDeclaration.cs
- AssemblyInfo.cs
- cache.cs
- TraceContextEventArgs.cs
- ContentPresenter.cs
- AccessDataSourceView.cs
- PlatformNotSupportedException.cs
- ControlParameter.cs
- IssuedTokensHeader.cs
- MultipleFilterMatchesException.cs
- KerberosSecurityTokenAuthenticator.cs
- ConfigurationSectionGroupCollection.cs
- XPathNavigator.cs
- InstanceDescriptor.cs
- StrokeCollectionConverter.cs
- ChangesetResponse.cs
- CatalogZoneBase.cs